10 lines
268 B
TypeScript
10 lines
268 B
TypeScript
import * as Sentry from '@sentry/nextjs';
|
|
|
|
export async function register(): Promise<void> {
|
|
if (process.env.NEXT_RUNTIME === 'nodejs') {
|
|
await import('./lib/error-tracking/sentry.server.config');
|
|
}
|
|
}
|
|
|
|
export const onRequestError = Sentry.captureRequestError;
|