From 88ce29aa77fa8948779fae339e135fc2f6d0a1d2 Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 18 Jun 2023 16:26:23 +0200 Subject: [PATCH] fix(sentry): use correct environment from vite env mode --- vite.config.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/vite.config.ts b/vite.config.ts index 7628fc3e7..ce1e96bae 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -50,9 +50,7 @@ function getSentryConfig(env: ImportMetaEnv): ViteSentryPluginOptions { cleanSourcemapsAfterUpload: true, legacyErrorHandlingMode: true, deploy: { - env: env.mode === 'production' - ? 'production' - : 'development', + env: env.MODE, }, setCommits: { auto: true,