nuxt-modules / sitemap

Powerfully flexible XML Sitemaps that integrate seamlessly, for Nuxt.
https://nuxtseo.com/sitemap
336 stars 31 forks source link

feat!: new multi sitemaps paths #320

Closed harlan-zw closed 4 months ago

harlan-zw commented 4 months ago

πŸ”— Linked issue

n/a

❓ Type of change

πŸ“š Description

Currently supporting multi-support is done through explicit build-time routes or using a middleware if they're chunked. This blocks us from generating runtime sitemaps when not chunking, as the paths are registered. This is an issue for multi-tenancy apps and is blocking https://github.com/nuxt-modules/sitemap/issues/265.

The paths change from /{name}-sitemap.xml to /__sitemap__/{name}.xml and are handled by Nitro named routes.

:warning: This is a breaking change if users have registered the multi-sitemap paths in Google Search Console, users should update these when upgrading.