bartholomej / svelte-sitemap

Sitemap generator for SvelteKit. Small helper which scans your SvelteKit routes and generates static sitemap.xml
MIT License
270 stars 12 forks source link

Large Sites #32

Closed eecue closed 1 year ago

eecue commented 1 year ago

Hello, great tool, one problem though, sitemaps are limited to 50k entries per page.

eecue commented 1 year ago

I made a PR: https://github.com/bartholomej/svelte-sitemap/pull/33

eecue commented 1 year ago

Hmm also needs an index:

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

bartholomej commented 1 year ago

Great idea, Dave! And yes, sitemap index is needed when you split into chunks, but it won't be complicated. I will take a look.

bartholomej commented 1 year ago

Yes, your PR is great!

So now we just need to do this:

I'll use your codebase and let you know ;)

bartholomej commented 1 year ago

Check this: https://github.com/bartholomej/svelte-sitemap/compare/large-sitemaps

I'll make a special release for you tomorrow. I'd appreciate some test on your real website.

eecue commented 1 year ago

Awesome! I’m ready to test!

bartholomej commented 1 year ago

So try version 2.6.0-beta.1 and let me know ;)

npm i svelte-sitemap@beta --save 
eecue commented 1 year ago

Perfect!

bartholomej commented 1 year ago

@eecue Please let me know if it works in your real environment and if all files are valid. You can use one of the online validators

If you confirm I'll make new release for everyone ;)

eecue commented 1 year ago

Yep I did and it's valid!