We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8702965 commit 956ed2eCopy full SHA for 956ed2e
build/utils.ts
@@ -34,7 +34,11 @@ export function wrapperEnv(envConf: Recordable): ViteEnv {
34
} catch (error) {}
35
}
36
ret[envName] = realName;
37
- process.env[envName] = realName;
+ if (typeof realName === 'string') {
38
+ process.env[envName] = realName;
39
+ } else if (typeof realName === 'object') {
40
+ process.env[envName] = JSON.stringify(realName);
41
+ }
42
43
return ret;
44
0 commit comments