React and Next.js custom error pages for 500 and 503 errors
Unanswered
Ragdoll posted this in #help-forum
RagdollOP
Hello everyone, I'm using React and Next.js. I'm using the app router instead of pages. Currently, I already have a custom 404 page using not-found.tsx. However, I now need to create custom error pages for the 500 and 503 errors. Any suggestions or tips on how I can achieve this? I'm trying to use global-error.tsx, but I'm not able to catch the error there. I'm also unsure how to manually throw a 500 or 503 error.