-
-
Notifications
You must be signed in to change notification settings - Fork 498
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
Medusa Storefront Runs Correctly on Localhost but Encounters Issues After Deployment to Vercel; Backend Hosted on Railway in Server Mode #394
Comments
I ran the same problem locally as |
hey @asif7897 thanks for reporting. Have you checked if Vercel provides any logs for those RSC requests? You can probably use those @fuxianwei could you provide more details about the issue? If you were able to reproduce locally, can you paste the error logs of the failed request? Thanks! |
@fuxianwei do you have server logs for those RSC requests? |
Issue #396 Add the following configuration to // ... existing imports ...
// Add this line at the top of the file
export const dynamic = "force-dynamic"
// ... rest of the file remains unchanged ... |
Thanks for your reply, your method solves the problem. |
cheers 🥂 |
The problem now is that after deploying to Vercel, everything initially appears fine. However, when I navigate to a product page, it shows this URL:
I've already fixed store CORS, admin CORS, and other related settings. I've also followed the Medusa documentation (version 2.1) for troubleshooting this type of error, but I still can't identify the problem.
The text was updated successfully, but these errors were encountered: