-
-
Notifications
You must be signed in to change notification settings - Fork 490
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 500 Internal Server Error - products/[handle] #391
Comments
You need to make sure all your products has the slug listed on the product. |
Thanks a simple line of code fixed the issue, what about the code offered in: It was pushed to the repo update. should we stick to the old and add |
Yo can use both the fix in #393 work well.
|
Dynamic Pages Not Accessible After Build (Collections/Categories/Products)Related Issues
DescriptionAfter building the store, newly added content (collections, categories, and products) in the Medusa admin are not accessible, resulting in Current Behavior
Root CauseThe pages are using Quick SolutionAdd
This solution aligns with the fix provided in issue #391 and extends it to collections and categories pages. Implementation// Add to the top of each file:
export const dynamic = 'force-dynamic'
// Comment out or remove generateStaticParams() in each file Trade-offs
Notes
resolves the issue for these pages as well. This happens when adding new collections/categories after the build. |
I had an issue with the production build causing error 500 when I visit any product page.
This error does not appear in development mode.
I had to remove this function from
src/app/[countryCode]/(main)/products/[handle]/page.tsx
for it to work.Not sure if this is just an edge case but hope it helps someone here.
The text was updated successfully, but these errors were encountered: