diff --git a/src/index.tsx b/src/index.tsx index eeeb9374..a97465ea 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -6,12 +6,11 @@ import { render } from 'solid-js/web' import App from './App' const environment = import.meta.env.VITE_SENTRY_ENVIRONMENT as string | undefined -if (environment) { - Sentry.init({ - dsn: 'https://c3402db23a1a02fe83b7a43b7dbbbac0@o33823.ingest.us.sentry.io/4508738328854529', - environment, - }) -} +Sentry.init({ + enabled: !!environment, + dsn: 'https://c3402db23a1a02fe83b7a43b7dbbbac0@o33823.ingest.us.sentry.io/4508738328854529', + environment, +}) const root = document.getElementById('root')