Auto creating sitemap and index files from one large list?

PTiCA1
0
PTiCA1
commented a month ago

What problem does this feature solve?

Hello to everybody,
does anyone have a solution to solve sitemap generation for a large number of pages? I generate articles from wordpress rest api and I need to split the sitemap into more files.

There is a solution in the sitemap.js documentation but I don't know how to use it in nuxt.js
https://github.com/ekalinin/sitemap.js#building-just-the-sitemap-index-file

Thanks for any advice.

idea
0
AndyCosow
5
AndyCosow
commented 19 days ago

Hi there, i was dealing with the similar problem - i made single sitemap with this module, there was little bit less than 50k links, so when provided that sitemap to google search console, they failed to fetch it.

My solution was to build sitemap index and put all the sub sitemaps in to it - i took all links from my old sitemap and divided them in categories. All this was done with sitemap.js in node.js using express router to send back response as generated sitemap.xml index file.

1
roryheaney
5
roryheaney
commented 6 hours ago

@AndyCosow did you have example code for that available?

1
Informations
Feature Request โ€ข Open
#c62 - Created a month ago