22 lines
647 B
TypeScript
22 lines
647 B
TypeScript
|
|
import * as Sentry from '@sentry/browser'
|
||
|
|
import { defineNuxtPlugin } from '#app'
|
||
|
|
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: [
|
||
|
|
new Sentry.BrowserTracing({ traceFetch: false }),
|
||
|
|
Sentry.replayIntegration(),
|
||
|
|
],
|
||
|
|
environment: env.name,
|
||
|
|
tracesSampleRate: env.tracesSampleRate,
|
||
|
|
replaysSessionSampleRate: env.replaysSessionSampleRate,
|
||
|
|
replaysOnErrorSampleRate: env.replaysOnErrorSampleRate,
|
||
|
|
})
|
||
|
|
|
||
|
|
export default defineNuxtPlugin(() => {
|
||
|
|
})
|