DEV Community

loading...

Discussion on: Create a Dynamic Sitemap with Next.js

Collapse
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.

Collapse
christiankozalla profile image
Christian Kozalla

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