Next.js Discord

Discord Forum

Does sitemap name matter with next-sitemap generating dynamic sitemaps ?

Answered
KaungKZ posted this in #help-forum
Open in Discord
I am using next-sitemap package with their dynamic/server-side sitemaps because I need to get dynamic urls from API. It generates the filename url.com/server-sitemap.xml on production instead of url.com/sitemap.xml. Does the file name really matter? or it is not necessary? I also updated robots.txt so it looks like this

...

# Sitemaps
Sitemap: https://www.url.com/sitemap.xml
Sitemap: https://www.url.com/server-sitemap.xml
Answered by riský
as far as i know having server-sitemap.xml doesn't affect anything... google will see it and treat it as the same as normal sitemap... also as you have added it to robots.txt it won't be missed (so unless the search engine isn't that smart, there isn't an issue)
View full answer

2 Replies

Answer
also considering they use it, it must not affect that badly