mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
[GH-ISSUE #397] Feature Request: Support for generateSitemaps() #86
Labels
No labels
enhancement
enhancement
good first issue
help wanted
nextjs-tracking
nextjs-tracking
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vinext#86
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @tlmader on GitHub (Mar 10, 2026).
Original GitHub issue: https://github.com/cloudflare/vinext/issues/397
Description
vinext currently supports basic
sitemap.tsmetadata file routes (single<urlset>per route segment), but does not support Next.js'sgenerateSitemaps()API forpaginated sitemaps.
Current Behavior
sitemap.tsdefault export is called with no arguments (await metaFn())sitemap.tsmaps to a single fixed URL (e.g.,/photos/sitemap.xml)sitemapToXml()only produces<urlset>— no<sitemapindex>serialization existsgenerateSitemaps()named export is ignored if presentExpected Behavior
Per the Next.js API:
sitemap.tsexportsgenerateSitemaps(), call it to get a list of{ id }objectsid, serve the sitemap at/{segment}/sitemap/{id}.xmlby callingsitemap({ id })<sitemapindex>at/{segment}/sitemap.xmllisting all paginated sitemap URLs — this requires a new serializer alongsidesitemapToXml()that produces<sitemapindex>with<sitemap><loc>entriesThis is required for collections that exceed the 50,000 URL limit per sitemap file (per the sitemaps protocol).