Learn Nuxt with a Collection of 100+ Tips!

sitemap
sitemap

Powerfully flexible XML Sitemaps that integrate seamlessly.

@nuxtjs/sitemap

NPM versionNPM DownloadsGitHub stars

Powerfully flexible XML Sitemaps that integrate seamlessly, for Nuxt. Previously nuxt-simple-sitemap.


Status: v6 Released ๐ŸŽ‰
Please report any issues ๐Ÿ›
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

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

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

Install @nuxtjs/sitemap dependency to your project:

npx nuxi@latest module add sitemap

Documentation

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

StackBlitz Demos / Reproductions

Sponsors

License

MIT License ยฉ 2022-PRESENT Harlan Wilton