npm @nuxtjs/sitemap 1.0.0
v1.0.0

latest releases: 5.1.4, 5.1.3, 5.1.2...
5 years ago

✨ v1 Release

With support for non-prerendered apps and development previews now available, the module is now at a stable release version.

If you have any feedback on the release, please submit an issue or get in touch 🙂!

🚀 Features

Prerendering is no longer required

When the module starts, it will now detect all your static routes and automatically add them to the sitemap.

You can opt-out of any of the discovered URLs with the nitro route rules { index: false }.

Dev Sitemap preview

Previewing the sitemap in development is now possible for static routes, you can visit /sitemap.preview.xml.

It won't be able to accurately show you dynamic routes if you're relying on the nitro crawler though.

New config: defaults

  • Type: object
  • Default: {}

Default values for the sitemap entries. See sitemaps.org for all available options.

New config: urls

  • Type: () => MaybePromise<SitemapEntry[]> | MaybePromise<SitemapEntry[]>
  • Default: []

Provide custom URLs to be included in the sitemap.xml.

New config: devPreview

  • Type: boolean
  • Default: true

Whether to generate the sitemap preview in development.
It can be useful to disable if you have fetch requests to external APIs.

🐛 Fixes

  • Nitro route rules for the sitemap now have the correct types

Don't miss a new sitemap release

NewReleases is sending notifications on new releases.