Next.js Discord

Discord Forum

How to make frontend stack trace show original files (not webpack bundle files) in prod env?

Unanswered
Peruvian anchoveta posted this in #help-forum
Open in Discord
Peruvian anchovetaOP
Please see attached message, thanks! Or just go here: https://github.com/vercel/next.js/discussions/55454

6 Replies

@Peruvian anchoveta Please see attached message, thanks! Or just go here: https://github.com/vercel/next.js/discussions/55454
files are minifed for production so you cannot get stacktrace in production
Peruvian anchovetaOP
Thanks for the help man
Peruvian anchovetaOP
So do I have to do something like this snetry integration in order to get the stack trace? Else I'm not really sure how else to find out where this error is actually happening
Common Greenshank
Would like to know the same, how do I capture the error stack trace with correct line number (for the error that happen in the API route (db error, connection timeout etc) ) ?