fedeya / remix-sitemap

Sitemap generator for Remix applications
https://npmjs.com/remix-sitemap
MIT License
95 stars 5 forks source link

Split sitemap in build time #31

Closed fedeya closed 1 year ago

fedeya commented 1 year ago

Is your feature request related to a problem? Please describe. Now all urls are generated in the same sitemap.xml this with a lot of routes can make the file so bigger and this is a problem for big sites because the limit is 50k routes

Reference: https://developers.google.com/search/docs/crawling-indexing/sitemaps/large-sitemaps

Describe the solution you'd like Add a size in config for set the max <url> generated per file, change the sitemap.xml to be a index sitemap and generate each file as ${sitemapBaseFileName}-${index}.xml