Skip to content

Releases: nuxt-modules/sitemap

v1.0.0

21 Jan 08:28
Compare
Choose a tag to compare

✨ 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

v0.5.10

16 Jan 08:32
Compare
Choose a tag to compare

Bug Fixes

  • types: return of sitemap:generate hook (e979826)

v0.5.9

12 Jan 02:08
Compare
Choose a tag to compare

Bug Fixes

v0.5.8

05 Jan 23:44
Compare
Choose a tag to compare

Bug Fixes

  • avoid duplicate sitemap entries (cfde25e), closes #3
  • trailing slash urls can discover route rules (55b440a)

v0.5.7

26 Dec 01:49
Compare
Choose a tag to compare

Bug Fixes

  • ensure hook sitemap:generate is called (0dbb235)

v0.5.6

23 Dec 01:02
Compare
Choose a tag to compare
chore: release v0.5.6

v0.5.5

22 Dec 00:12
Compare
Choose a tag to compare

Bug Fixes

  • avoid prerendering sitemap.xml (89a3b92)

v0.5.4

19 Dec 07:34
Compare
Choose a tag to compare

Bug Fixes

v0.5.3

19 Dec 06:48
Compare
Choose a tag to compare

Bug Fixes

  • inject /sitemap.xml path (659a0d8)

v0.5.2

13 Dec 14:22
Compare
Choose a tag to compare
chore: release v0.5.2