Generate Dynamic SiteMap
Unanswered
Japanese anchovy posted this in #help-forum
Japanese anchovyOP
Taking a look at this code for e2e https://github.com/vercel/next.js/blob/3db5c16546211a564bd2adb29788ae651667486a/test/e2e/app-dir/metadata-dynamic-routes/app/gsp/sitemap.ts#L4
would I just make a file
would I just make a file
app/products/sitemap.ts and in my generateSitemaps, run a call to fetch all the IDs?4 Replies
Japanese anchovyOP
Also how would this work if I had over 50,000 pages? can i have it split into 50,000 page chunks of xml?
New Guinea Freshwater Crocodile
I have the same question :/
you would have to create a custom route handler that returns xml because they currently don't have support for more then the root sitemap
Yeah, or you can just use existing packages like next-sitemap