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.
2 Likes
nice @adro.codes ! Thanks!