How to generate sitemap.xml on a Gatsby site?

preview_player
Показать описание
I also got the "Protocol is required" error because I did not use the right site object. Explanation of the error and solution is at 4:20

Рекомендации по теме
Комментарии
Автор

Google ignores priority, and is your key for url wrong - should it be loc?

philiprudy
Автор

Hello, There you have it created sitemap.xml, but I have sitemap-0.xml . Is this normal? How can I change from sitemap-0.xml to sitemap.xml ?

gynatikgynatik
Автор

cool video! I have a quest though, how would you go about adding a custom element on the sitemap such as a "last modified" date for a blog post that's been updated?

TheInfamousAlpha