commerce: Sitemap.xml prerendering error on all preview deployments to Vercel
When pushing any branch except main, I get the following error on preview deployments to Vercel:
Error occurred prerendering page "/sitemap.xml". Read more: https://nextjs.org/docs/messages/prerender-error
This occurs on branches with identical code to the main branch, ones that I created from main and push immediately with no code modifications. The following is a screenshot of my deployments:
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 5
- Comments: 20 (2 by maintainers)
In my case I forgot to add the
.myshopify.compart in theSHOPIFY_STORE_DOMAINvariable and got the same error.same error here. runs fine locally, but fails vercel deployment.