Nuxt Sitemap v7.0.0
Release notes for v7.0.0 of Nuxt Sitemap.
Introduction
The v4 major of Nuxt Sitemap is a simple release to remove deprecations and add support for the Nuxt SEO v2 stable.
Breaking Features
Site Config v3
Nuxt Site Config is a module used internally by Nuxt Sitemap.
The major update to v3.0.0 shouldn't have any direct effect on your site, however, you may want to double-check the breaking changes.
inferStaticPagesAsRoutes config Removed
If you set this value to
export default defineNuxtConfig({
sitemap: {
- inferStaticPagesAsRoutes: false,
+ excludeAppSources: ['pages', 'route-rules', 'prerender']
}
})
dynamicUrlsApiEndpoint config Removed
The
export default defineNuxtConfig({
sitemap: {
- dynamicUrlsApiEndpoint: '/__sitemap/urls',
+ sources: ['/__sitemap/urls']
}
})
cacheTtl config Removed
Please use the
export default defineNuxtConfig({
sitemap: {
- cacheTtl: 10000,
+ cacheMaxAgeSeconds: 10000
}
})
index route rule / Nuxt Content support Removed
If you were using the
export default defineNuxtConfig({
routeRules: {
// use the `index` shortcut for simple rules
- '/secret/**': { index: false },
+ '/secret/**': { robots: false },
}
})
Did this page help you?