hengmei-one/jsFile/config.js

32 lines
679 B
JavaScript
Raw Normal View History

2021-10-21 09:21:59 +00:00
const ENV = process.env.NODE_ENV;
console.log('当前环境', process.env.NODE_ENV)
const apiHub = {
//开发环境
development: {
2021-11-05 08:49:56 +00:00
BASE_URL: "https://hm.hmzfyy.cn/api/", //一期域名
// BASE_URL: "https://hengmei1.scdxtc.cn/api/",//测试域名
2021-10-21 09:21:59 +00:00
IMG_URL: "https://xx",
BASE_UPLOAD_URL: "",
},
//测试环境
test: {
BASE_URL: "https://xxx",
IMG_URL: "https://xxx",
BASE_UPLOAD_URL: "",
},
//生产环境
production: {
BASE_URL: "https://xx",
IMG_URL: "https://xx",
BASE_UPLOAD_URL: "",
}
}
// 导出配置
export default {
ENV: ENV,
...apiHub[ENV]
}