mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-08-03 19:17:07 -04:00

care must be taken because everything initialized later will not be picked up by Nitro useRuntimeConfig() without passing an event
13 lines
287 B
TypeScript
13 lines
287 B
TypeScript
import * as Sentry from '@sentry/node';
|
|
|
|
import './dotenv.ts';
|
|
|
|
Sentry.init({
|
|
dsn: process.env.NUXT_PUBLIC_SENTRY_DSN,
|
|
tracesSampleRate: 1.0,
|
|
beforeSend(event, hint) {
|
|
console.error(hint.originalException || hint.syntheticException);
|
|
return event;
|
|
},
|
|
});
|