Split after 50000 entries (for Google)
JLNNN opened this issue · 5 comments
JLNNN commented
lgraubner commented
Seems necessary. I will probably have to reintroduce a filepath argument as currently all output ist piped to one file.
Any wishes how to name the sitemap part files? Something like sitemap_1.xml
etc.?
JLNNN commented
I guess that will do 👍
buildbreakdo commented
Thought it was a 10 megabyte limit not by line.. hmm..
buildbreakdo commented
Hah it's both.. how annoying:
'There are also limits on size. The sitemaps.xml file cannot exceed 10 megabytes in size, with no more than 50,000 URLs per file. But you can have multiple sitemaps in a sitemap index file, too. If you have millions of URLs, you can see where this starts to get hairy fast.'
lgraubner commented
Implemented in v6. Be aware that this is a breaking change, read more about it on the release page.