fix: condition

This commit is contained in:
Torsten Dittmann
2024-06-26 13:43:55 +02:00
parent 1bda506f2f
commit a4479416a6
2 changed files with 4 additions and 4 deletions

View File

@@ -3,10 +3,10 @@ import type { Handle } from '@sveltejs/kit';
import redirects from './redirects.json';
import { sequence } from '@sveltejs/kit/hooks';
import { BANNER_KEY, SENTRY_DSN } from '$lib/constants';
import { dev } from '$app/environment';
import { building } from '$app/environment';
Sentry.init({
enabled: !!import.meta.env?.SENTRY_AUTH_TOKEN && !dev,
enabled: building,
dsn: SENTRY_DSN,
tracesSampleRate: 1
})