()
| 25 | }; |
| 26 | |
| 27 | export function register() { |
| 28 | if (!process.env.NEXT_PUBLIC_SENTRY_DISABLED) { |
| 29 | if (process.env.NEXT_RUNTIME === 'nodejs') { |
| 30 | // Node.js Sentry configuration |
| 31 | Sentry.init(sentryOptions); |
| 32 | } |
| 33 | |
| 34 | if (process.env.NEXT_RUNTIME === 'edge') { |
| 35 | // Edge Sentry configuration |
| 36 | Sentry.init(sentryOptions); |
| 37 | } |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | export const onRequestError = Sentry.captureRequestError; |
nothing calls this directly
no outgoing calls
no test coverage detected