| | |
| | | |
| | | // const ENV_DEV = '127.0.0.1' // dev |
| | | // const ENV_DEV = '127.0.0.1:8086' // dev |
| | | const ENV_DEV = 'api.mak-web3.com' // dev |
| | | const ENV_DEV = 'zhapi.datacme.com' // dev |
| | | |
| | | // const ENV_PRO = window.location.hostname // 接口域名跟随 H5 |
| | | // const ENV_PRO = "127.0.0.1" |
| | | // const ENV_PRO = "127.0.0.1:8086" |
| | | const ENV_PRO = "api.mak-web3.com" |
| | | const ENV_PRO = "zhapi.datacme.com" |
| | | // 避免打包出错务必把 app域名的注释要放在在本地ENV_PRO的下面 |
| | | // const ENV_PRO = 'foilwm.com' // app域名 |
| | | |
| | |
| | | // 关键:用正则表达式匹配所有含/api的路径(忽略大小写) |
| | | '^/api.*': { // 匹配以/api开头的任何路径(如/api、/api/xxx、/api?xx等) |
| | | // target: 'http://154.23.189.28:8086', |
| | | target:'https://api.mak-web3.com', |
| | | // target:'https://api.mak-web3.com', |
| | | target:'https://zhapi.datacme.com', |
| | | // target:'https://zhapi.datacme.com', |
| | | // target: 'https://by2.cccxxx.cc', |
| | | changeOrigin: true, |
| | | secure: false, |