The app is now wired to GlitchTip with the Sentry SDKs
This commit is contained in:
9
frontend/src/instrumentation.ts
Normal file
9
frontend/src/instrumentation.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user