revert: 简化构建步骤,撤销app.config.js功能

This commit is contained in:
张传龙
2022-06-25 14:45:23 +08:00
parent 1fa9d4d472
commit b7ce7912a7
12 changed files with 18 additions and 68 deletions

View File

@@ -2,7 +2,7 @@ import fs from 'fs'
import path from 'path'
import dotenv from 'dotenv'
const httpsRE = /^https:\/\//
const httpsReg = /^https:\/\//
export function wrapperEnv(envOptions) {
if (!envOptions) return {}
@@ -36,7 +36,7 @@ export function wrapperEnv(envOptions) {
export function createProxy(list = []) {
const ret = {}
for (const [prefix, target] of list) {
const isHttps = httpsRE.test(target)
const isHttps = httpsReg.test(target)
// https://github.com/http-party/node-http-proxy#options
ret[prefix] = {