Creation of sitemap.xml file

Hi, is it posible to create a sitemap.xml file using DatoCMS?

Hello @julian1 the sitemap.xml should be generated on the frontend, so yes, you can surely generate that, but itโ€™s not coming out of the box from DatoCMS.

Makes sense?

So if my site is deployed on Vercel I need to use the tools provided by them?

yes, but probably youโ€™ll need to build the sitemap in your code, not sure if Vercel provides something for that

You can add next-sitemap in your frontend project. Follow the steps in the README. If you use the process.env.SITE_URL youโ€™ll need to edit the environment variables in Vercel and trigger a deployment.


nice ! Thanks!