You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using your host redirect, NEXT.js is just showing an empty page instead of the custom 500 error page when a client error occur. Server side errors works as expected and is showing the custom 500 error page.
As seen below, the log from getInitalProps inside _error.tsx is used, but still not showing the Custom500.tsx. Is it the host redirect that is causing the client to be unable to find the Custom500.tsx page?
The text was updated successfully, but these errors were encountered:
I'm seeing something different... I've just added a custom error page to the example this is working locally but not on Vercel where it looks like the error is getting caught in the Serverless function when it does the pre-render.
The getInitialProps on the _error page could be conflicting with getStaticProps on the pages maybe a static error page would be best and try catching and logging the errors from the other pages.
Thank you for a quick response. I couldn't replicate the issue with your repo (maybe should have tried that before creating the issue..). With some trial and error and found out that my redux and redux persist setup was somehow suppressing the error. After using the next-redux-wrapper instead, it is now working.
When using your host redirect, NEXT.js is just showing an empty page instead of the custom 500 error page when a client error occur. Server side errors works as expected and is showing the custom 500 error page.
Next version 11.0.1
Node version 12.16.1
next.config.js
_error.tsx
Custom500.tsx
As seen below, the log from getInitalProps inside _error.tsx is used, but still not showing the Custom500.tsx. Is it the host redirect that is causing the client to be unable to find the Custom500.tsx page?
The text was updated successfully, but these errors were encountered: