12 lines
298 B
JavaScript
12 lines
298 B
JavaScript
|
|
export async function register() {
|
||
|
|
if (process.env.NEXT_RUNTIME === 'nodejs') {
|
||
|
|
await import('./sentry.server.config.js')
|
||
|
|
}
|
||
|
|
|
||
|
|
if (process.env.NEXT_RUNTIME === 'edge') {
|
||
|
|
await import('./sentry.edge.config.js')
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
export {captureRequestError as onRequestError} from '@sentry/nextjs'
|