New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error deploying latest version on Vercel #210
Comments
Hey @jwoa, this is error usually means the storefront can't access the backend properly. Have you set the |
Hey @VariableVic, tried that as well but unfortunately got the same error. Could it be a chicken and egg scenario where there's no domain because the site can't initially be provisioned in vercel? |
Hey @VariableVic, I'm encountering the same issue with my Vercel starter. While my backend service deployed on Render is functioning correctly, I'm having trouble deploying the storefront on Vercel. |
@estebankra Thanks for that! It solved the Vercel deployment issue. Just have to sort the products loading now/CORS |
Thanks for the info @estebankra! I can't reproduce this issue locally, even with a fresh install with no collections/products in it. It just returns an empty array and displays no collections on the homepage (like it should). I'll spend some more time on debugging this today. Just to make sure, have you set the |
@jwoa Check out what @VariableVic said in his comment "Just to make sure, have you set the NEXT_PUBLIC_MEDUSA_BACKEND_URL env variable in Vercel? This should be your backend url without trailing / or /store." It looks like I first put my URL in my environment by including |
This seems to be the problem. I succeeded by removing the / at the end of |
Getting the same error but my NEXT_PUBLIC_MEDUSA_BACKEND_URL does not have the trailing / at the end. Not sure what else it could be |
I'm having the same error as @pmltechpile I bypass the deploy error by commenting the line like @estebankra says, but that's not the way to solve it, because its not showing the products on the main page. My CORS are god, I can tell because I can get products from the products sections. I got some intuitions that there is problem with categories or something. |
@pmltechpile @Dalvae The |
@VariableVic I tried a redeploy and nothing reaches the server |
Hey,
Thanks for the great template and Medusa in general! Everything works great locally but when trying to deploy the latest frontend/storefront on Vercel I keep running into an unexpected JSON error.
I've tried both manually and with the deploy button and always end up here. Any suggestions or fixes?
The text was updated successfully, but these errors were encountered: