Next.js Discord

Discord Forum

Get 500 errors in production.

Unanswered
endre posted this in #help-forum
Open in Discord
Is there a way to get the error messages from a next.js app that fails in production, but not in development? I have looks in all the log files I can find, but can not find any error messages.

2 Replies

I could not find a good way of doing this, but I found the output from my node server and by adding some good old console.log it was multiple things that did not work in production.
Maybe there is a way to get the error log from a node process, but I could not find it.
American Crow
There is no Nextjs/Vercel way other than you mentioned. You'll have to setup Sentry (or similar)