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 4 years ago
- Reactions: 6
- Comments: 25 (2 by maintainers)
I was able to fix this by adding this line to the top of my sitemap.js file (for Next 15).
In my case I forgot to add the
.myshopify.compart in theSHOPIFY_STORE_DOMAINvariable and got the same error.The fonts have the following file sizes.
Inter-Bold.ttf : 316 kb Inter-Regular.ttf: 310 kb
Together with the code they exceed 1MB
Remove the bold font, reduce or change the font file sizes. https://rovity.io/reduce-web-font-size/
same error here. runs fine locally, but fails vercel deployment.
I would like to know too.