500 Internal Server Error during ISR with generateStaticParams #85166
Unanswered
tarunkhurana
asked this question in
Help
Replies: 1 comment 4 replies
-
|
Can you explain a bit more, how this happening in a timeline? When you return empty params in your App Router version, and you allow new pages at runtime, the ISR would only show error, if it has to block to generate the page, and that itself errored. How does your file system tree look like? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
We are observing a 500 Internal Server Error in a Next.js 14 (App Router) project during ISR (Incremental Static Regeneration).
The error occurs inconsistently when a page uses generateStaticParams() returns an empty array, combined with data fetched from a CMS if anything coming invalid it is crashing a page. We are expecting a Error.tsx to appear or some custom error appear instead of nextjs internal server page. I did not find anywhere where we can customize this as well.
We also observed the same component works fine when rendered via SSR and it shows Error.tsx
Is this a known limitation with ISR + generateStaticParams([]) in App Router? How can we fix that?
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions