mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-23 04:34:15 -04:00
15 lines
298 B
TypeScript
15 lines
298 B
TypeScript
import * as Sentry from '@sentry/node';
|
|
|
|
import dotenv from './dotenv.ts';
|
|
|
|
dotenv();
|
|
|
|
Sentry.init({
|
|
dsn: process.env.SENTRY_DSN,
|
|
tracesSampleRate: 1.0,
|
|
beforeSend(event, hint) {
|
|
console.error(hint.originalException || hint.syntheticException);
|
|
return event;
|
|
},
|
|
});
|