Skip to content

Commit

Permalink
only use sentry in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
incognitojam committed Jan 31, 2025
1 parent b4a6576 commit 7a1260c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
import './index.css'

import * as Sentry from '@sentry/solid'
import { DEV } from 'solid-js'
import { render } from 'solid-js/web'
import App from './App'

if (!DEV) {
const environment = import.meta.env.VITE_SENTRY_ENVIRONMENT as string | undefined
if (environment) {
Sentry.init({
dsn: 'https://[email protected]/4508738328854529',
integrations: [],
environment,
})
}

Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

import { defineConfig } from 'vite'
import solid from 'vite-plugin-solid'
import devtools from 'solid-devtools/vite'
Expand All @@ -14,6 +13,7 @@ export default defineConfig({
org: 'commaai',
project: 'new-connect',
telemetry: false,
disable: !process.env.CI,
}),
],
server: {
Expand Down

0 comments on commit 7a1260c

Please sign in to comment.