generateSitemaps: Allow string values and not only numbers when generating multiple sitemaps #60648
ComeExploreCanada
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Goals
Non-Goals
generateSitemaps()
output files in aout/sitemap
directory.It would be nice if
app/sitemap.ts
outputted files in the at the root level ofout
and if you wanted it to be in aout/sitemap
directory you would doapp/sitemap/sitemap.ts
. But this is not part of this request. 😄Background
My current site is a Next.js (
pages
Router) app and I am moving to (app
Router) app. I would like this feature so websites can keep the same sitemap file names.In my Next.js (
pages
Router) app I have the following structure:And Next.js outputs it to:
Proposal
When generating multiple sitemaps with
generateSitemaps()
it would be nice to have the options to use a string values. Currently if you use a string value you get"Not Found"
in the*.xml
file(s).The following
app/sitemap.ts
will output this folder/file structure:It would be great if
app/sitemap.ts
will output this folder/file structure:Beta Was this translation helpful? Give feedback.
All reactions