How do I Get Error Stack rather than Digest on prod?
Unanswered
Dwarf Crocodile posted this in #help-forum
Dwarf CrocodileOP
Can't replicate the error on local at all. But on prod a page crashes and it's throwing a digest. How do I make it log the whole error? stack and all
4 Replies
Dwarf CrocodileOP
Bump?
Northeast Congo Lion
Did you want the full guide or you want Me to do that for you?
@Northeast Congo Lion Did you want the full guide or you want Me to do that for you?
Dwarf CrocodileOP
Ideally I want to understand how to control where these errors get posted and how they get handled. So a guide?
I can fix the error, when i find the trace
I can fix the error, when i find the trace
Greek Shepherd
Ive tried looking around for this as well and unless ur using some kind of error monitoring tool like sentry (which i can recommend anyway) it seems like you have to manually return custom objects instead of errors and display those.
Heres a good guide
https://medium.com/@keshav.aneja09/next-js-errors-be-like-i-exist-in-dev-but-disappear-in-production-2b4f1f4802f4
Heres a good guide
https://medium.com/@keshav.aneja09/next-js-errors-be-like-i-exist-in-dev-but-disappear-in-production-2b4f1f4802f4