mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-03-24 17:41:27 -04:00
14 lines
322 B
TypeScript
14 lines
322 B
TypeScript
import * as Sentry from '@sentry/nextjs'
|
|
|
|
export async function register() {
|
|
if (process.env.NEXT_RUNTIME === 'nodejs') {
|
|
await import('./sentry.server.config')
|
|
}
|
|
|
|
if (process.env.NEXT_RUNTIME === 'edge') {
|
|
await import('./sentry.edge.config')
|
|
}
|
|
}
|
|
|
|
export const onRequestError = Sentry.captureRequestError
|