mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-27 14:11:25 +08:00
chore: Requires pnpm 8 and node 16
This commit is contained in:
@@ -24,10 +24,6 @@ export function wrapperEnv(envConf: Recordable): ViteEnv {
|
||||
for (const envName of Object.keys(envConf)) {
|
||||
let realName = envConf[envName].replace(/\\n/g, '\n');
|
||||
realName = realName === 'true' ? true : realName === 'false' ? false : realName;
|
||||
|
||||
if (envName === 'VITE_PORT') {
|
||||
realName = Number(realName);
|
||||
}
|
||||
if (envName === 'VITE_PROXY' && realName) {
|
||||
try {
|
||||
realName = JSON.parse(realName.replace(/'/g, '"'));
|
||||
|
Reference in New Issue
Block a user