mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-10 04:22:27 +10:00
13 lines
276 B
TypeScript
13 lines
276 B
TypeScript
import env from '@beam-australia/react-env';
|
|
import * as Sentry from '@sentry/nextjs';
|
|
|
|
const SENTRY_DSN = env('CLIENT_SENTRY_DSN');
|
|
|
|
if (SENTRY_DSN) {
|
|
Sentry.init({
|
|
dsn: SENTRY_DSN,
|
|
tracesSampleRate: 1.0,
|
|
enabled: process.env.NODE_ENV === 'production',
|
|
});
|
|
}
|