Next.js Discord

Discord Forum

Custom 500 page flashes, then replaced by Error component

Unanswered
Satin posted this in #help-forum
Open in Discord
SatinOP
We have implemented the pages/500.tsx file for custom error pages. It displays, then is replaced by the pages/_error.tsx content. Is there a way to get the pre-rendered content for the pages/500.tsx file, or do we need to duplicate the logic into pages/_error.tsx? If we need to duplicate the logic, what is the point of the pages/500.tsx file?

NextJS 12.2

0 Replies