12345678910111213141516171819 |
- import * as Sentry from '@sentry/nextjs';
- const SENTRY_DSN = process.env.SENTRY_DSN || process.env.NEXT_PUBLIC_SENTRY_DSN;
- const SENTRY_ENABLED = process.env.NEXT_PUBLIC_SERVER_SENTRY_ENABLED === 'true';
- const isDev = process.env.NODE_ENV === 'development';
- Sentry.init({
- enabled: SENTRY_ENABLED,
- dsn: SENTRY_ENABLED ? SENTRY_DSN : null,
-
-
-
- tracesSampleRate: isDev ? 1 : 0,
- debug: isDev,
- });
|