Learn Nuxt with a Collection of 100+ Tips!

sitemap
@nuxtjs/sitemap

Powerfully flexible XML Sitemaps that integrate seamlessly.

@nuxtjs/sitemap

npm versionnpm downloadsLicenseNuxt

Nuxt Sitemap is a module for generating best-practice XML sitemaps that are consumed by the robots crawling your site.

New to XML sitemaps or SEO? Check out the Controlling Web Crawlers guide to learn more about why you might need these.

Made possible by my Sponsor Program ๐Ÿ’–
Follow me @harlan_zw ๐Ÿฆ โ€ข Join Discord for help

Features

  • ๐ŸŒด Single /sitemap.xml or multiple /posts-sitemap.xml, /pages-sitemap.xml
  • ๐Ÿ“Š Fetch your sitemap URLs from anywhere
  • ๐Ÿ˜Œ Automatic lastmod, image discovery and best practice sitemaps
  • ๐Ÿ”„ SWR caching, route rules support
  • ๐ŸŽจ Debug using the Nuxt DevTools integration or the XML Stylesheet
  • ๐Ÿค Integrates seamlessly with Nuxt I18n and Nuxt Content

Installation

๐Ÿ’ก Using Nuxt 2? Use the nuxt-community/sitemap-module docs.

Install @nuxtjs/sitemap dependency to your project:

npx nuxi@latest module add sitemap

๐Ÿ’ก Need a complete SEO solution for Nuxt? Check out Nuxt SEO.

Documentation

๐Ÿ“– Read the full documentation for more information.

Demos

Sponsors

License

Licensed under the MIT license.