Nested sitemaps with locales
Unanswered
Polar bear posted this in #help-forum
Polar bearOP
Hi, I'm trying to create a sitemap structure that generates a sitemap.xml for each locale available in my app and has a sitemap index in the app root.
Basic file structure:
How can I access the locale inside the nested sitemap.ts?
And are there any out-of-the box methods to generate the sitemap index, without using the
Basic file structure:
├── app
│ ├── [locale]
│ │ ├── [...slug]
│ │ ├── sitemap.ts
│ ├── sitemap.ts -> sitemap indexHow can I access the locale inside the nested sitemap.ts?
And are there any out-of-the box methods to generate the sitemap index, without using the
next-sitemap package?1 Reply
Yellow and black potter wasp
Same problem here, interested in a solution...