Custom error handler nextJS #8348
Replies: 2 comments 2 replies
-
Hey @LeikoDmitry, thanks for writing in. What are you referring to as custom error handler here - is it for client or server side? I would recommend just following the Next.js docs here, anything you do should just work in Sentry and sourcemaps out of the box. The Sentry SDK's expose a |
Beta Was this translation helpful? Give feedback.
-
I mean, when I build a project, sentrySDK sends source map to server via API, but when my server may be unavailable, it crashes with error about inability to send and project build crashes. How to make a handler for this error so that the build doesn't crash. |
Beta Was this translation helpful? Give feedback.
-
Hi, there
I have a one question, could you please show me How I can implements the custom error handler when nextJs build the project and send the source map?
Best regards, Dmitry
Beta Was this translation helpful? Give feedback.
All reactions