mirror of
https://github.com/LukeHagar/website.git
synced 2025-12-07 21:07:44 +00:00
fix: case when sentry auth token is not set
This commit is contained in:
@@ -3,11 +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 { SENTRY_AUTH_TOKEN } from '$env/static/private';
|
||||
import { building } from '$app/environment';
|
||||
|
||||
Sentry.init({
|
||||
enabled: !!SENTRY_AUTH_TOKEN && building,
|
||||
enabled: !!import.meta.env?.SENTRY_AUTH_TOKEN && building,
|
||||
dsn: SENTRY_DSN,
|
||||
tracesSampleRate: 1
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user