DEV Community


Discussion on: Create a Dynamic Sitemap with Next.js

codebycorey profile image
Corey O'Donnell Author

I deploy my website using Vercel. Anytime my main branch changes, it triggers a build and runs my generate-sitemap through next.config.js. Since Vercel is running my script, I do not need to commit it to repository.

christiankozalla profile image
Christian Kozalla

Alright, so that would work out for me. Thank you!