How can I show the custom error page with Vercel 'Serverless Function timed out' error? #51629
Unanswered
mitestainer
asked this question in
Help
Replies: 1 comment 1 reply
|
im struggling with this rn |
1 reply
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
I can make the custom error pages work for every server-side error except that one from Vercel when the serverless function timed out. Is there a way to make the custom Next.js error page appear when that error happens?
I've set up a simple example where the home page has a time-out inside
getServerSideProps, as well as the_error.jsand500.jspages (left both of them as.jsfor the sake of simplicity). Obviously, I can't reproduce the error locally, but I can't also make the page appear on the deployed version. 🙁Additional information
No response
Example
https://github.com/mitestainer/error-500
All reactions