Spaces:
Running
Running
File size: 424 Bytes
fb8c550 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | import * as Sentry from '@sentry/nextjs';
Sentry.init({
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN || '',
environment: process.env.NEXT_PUBLIC_VERCEL_ENV || 'development',
tracesSampleRate: 0.1,
integrations: [Sentry.browserTracingIntegration()],
beforeSend(event) {
if (event.exception) {
console.error('[Sentry] Captured exception:', event.exception.values?.[0]?.value);
}
return event;
},
});
|