This commit is contained in:
Daniel Bulant 2022-12-12 21:02:37 +01:00
parent cfa7e7c572
commit 672b4b59db

View file

@ -4,7 +4,7 @@ import { BrowserTracing } from "@sentry/tracing";
/** @type {import('./$types').PageLoad} */
export function load({ url, event }) {
// @ts-ignore
if(import.meta.env.VITE_SENTRY_DSN && typeof event !== "undefined" && typeof window !== 'undefined')
if(import.meta.env.VITE_SENTRY_DSN && typeof event !== "undefined" && typeof window !== 'undefined') {
Sentry.init({
// @ts-ignore
dsn: import.meta.env.VITE_SENTRY_DSN,