From 01c7fd450bff7c5bad7f009c8ae6a3494d540f16 Mon Sep 17 00:00:00 2001 From: Joosep Alviste Date: Fri, 20 Oct 2023 23:42:06 +0300 Subject: [PATCH] build(api): disable Sentry uploading in development This avoids some warnings from Sentry in development when there are no Sentry environment variables. --- apps/webapp/vite.config.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/webapp/vite.config.ts b/apps/webapp/vite.config.ts index c1ac3ae2..c7553e35 100644 --- a/apps/webapp/vite.config.ts +++ b/apps/webapp/vite.config.ts @@ -42,6 +42,7 @@ export default ({ mode }: { mode: string }) => { project: process.env.SENTRY_PROJECT, authToken: process.env.SENTRY_AUTH_TOKEN, telemetry: false, + disable: process.env.NODE_ENV !== 'production', }), VitePWA({ includeAssets: [