Skip to content

Deployed NextJS app's API returns 404 #41781

Answered by nikolagigic
nikolagigic asked this question in Help
Discussion options

You must be logged in to vote

The issue was not with API routes - the issue is that Vercel is masking unhandled exceptions to 404. So if something bad happens on back-end and you do not catch the exception AND returrn it to front-end you will never know what actually happened.

Replies: 5 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@saad-devx
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by nikolagigic
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
6 participants