修复环境变量被替换的问题
This commit is contained in:
@@ -53,7 +53,8 @@ export default () => {
|
||||
|
||||
getEnvParams().then(envParams => {
|
||||
// 移除代理相关的环境变量设置,防止请求库自动应用它们
|
||||
for (const key of Object.keys(process.env)) {
|
||||
// eslint-disable-next-line no-undef
|
||||
for (const key of Object.keys(ENVIRONMENT)) {
|
||||
if (/^(?:http_proxy|https_proxy|NO_PROXY)$/i.test(key)) delete process.env[key]
|
||||
}
|
||||
const envProxy = envParams.cmdParams['proxy-server']
|
||||
|
||||
Reference in New Issue
Block a user