fix(sentry): use correct environment from vite env mode
This commit is contained in:
parent
0ca1b3a7f5
commit
88ce29aa77
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user