diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index 11c156152..b0e6dfcdc 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -219,7 +219,7 @@ export default defineConfig(({mode}) => { build: { target: 'esnext', // required for sentry debugging: tells vite to create source maps - sourcemap: true, + sourcemap: Boolean(env.SENTRY_AUTH_TOKEN), rollupOptions: { plugins: [ visualizer({