fix(sentry): use correct environment from vite env mode

This commit is contained in:
kolaente 2023-06-18 16:26:23 +02:00
parent 0ca1b3a7f5
commit 88ce29aa77
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B

View File

@ -50,9 +50,7 @@ function getSentryConfig(env: ImportMetaEnv): ViteSentryPluginOptions {
cleanSourcemapsAfterUpload: true, cleanSourcemapsAfterUpload: true,
legacyErrorHandlingMode: true, legacyErrorHandlingMode: true,
deploy: { deploy: {
env: env.mode === 'production' env: env.MODE,
? 'production'
: 'development',
}, },
setCommits: { setCommits: {
auto: true, auto: true,