12 lines
418 B
JavaScript
12 lines
418 B
JavaScript
import * as Sentry from '@sentry/nextjs';
|
|
|
|
const SENTRY_DSN = process.env.NEXT_PUBLIC_SENTRY_DSN ?? 'https://860186db60c54c7fbacfe255124958e8@errors.ente.io/4';
|
|
const SENTRY_ENV = process.env.NEXT_PUBLIC_SENTRY_ENV ?? 'development';
|
|
|
|
Sentry.init({
|
|
dsn: SENTRY_DSN,
|
|
enabled: SENTRY_ENV !== 'development',
|
|
environment: SENTRY_ENV,
|
|
release: process.env.SENTRY_RELEASE,
|
|
autoSessionTracking: false,
|
|
});
|