Current versus Expected behavior
This has been dogging me for nearly 2 years and is nearly impossible to Google because of how it’s described.
Basically, I currently have an endpoint that throws a known error. Locally, this gives me the error boundary page we always intended.
When deployed on Vercel however, and contrary to the Next.js docs, this gives me the generic Vercel “serverless function has crashed” page.
I have never been able to figure out why it shows the Vercel page and not the page we intended. How do we get it to stop showing the Vercel crash page and show our own?
Thanks,
-Stephen
Bad:
Good:
(note: same path! querying same broken endpoint!)
Code, configuration, and steps that reproduce this issue
Project information
Deployment URL:
Environment (local, preview, production):
Project Framework:
Build Settings:
Framework Preset:
Build Command (if not default):
Output Directory (if not default):
Install Command (if not default):
Node/Runtime Version:
Package Manager:
Relevant Packages:

