I have a custom 500 error page called 500.tsx
and I want to able to show this page when request from client fails with status of 500, but keeping client on old url (for example /auth/register). I have a axios
listener on error which should do all the work. But could not find a way to do this using next/router
. Any help appreciated
0
votes
enableErrorPage
make ittrue
when you receive error, and just use this flag in all of your existing pages with importing/including your500.tsx
component. And ifenableErrorPage == true
render500.tsx
– Dhaval Darji