18 lines
568 B
TypeScript
18 lines
568 B
TypeScript
import * as Sentry from '@sentry/nuxt';
|
|
import { envConfig } from '~/utils/environment'
|
|
|
|
const env = envConfig(window.location.hostname)
|
|
|
|
Sentry.init({
|
|
enabled: env.sentryEnabled,
|
|
dsn: 'https://da2e8d42185a4013909d49955432a116@o365290.ingest.sentry.io/5187660',
|
|
integrations: [
|
|
Sentry.browserTracingIntegration({ traceFetch: false }),
|
|
Sentry.replayIntegration(),
|
|
],
|
|
environment: env.name,
|
|
tracesSampleRate: env.tracesSampleRate,
|
|
replaysSessionSampleRate: env.replaysSessionSampleRate,
|
|
replaysOnErrorSampleRate: env.replaysOnErrorSampleRate,
|
|
})
|