|
|
@@ -1,11 +1,15 @@
|
|
|
+
|
|
|
+const env = require('./src/config/env');
|
|
|
+const env_url = env.env_url;
|
|
|
module.exports = {
|
|
|
publicPath: './',
|
|
|
devServer: {
|
|
|
proxy: {
|
|
|
'/api':{
|
|
|
- target:"http://8.136.230.133:8080",//这里设置你要访问的域名(或IP+端口) //测试
|
|
|
+ // target:"http://8.136.230.133:8080",//这里设置你要访问的域名(或IP+端口) //测试
|
|
|
//target:"http://8.140.188.129:8080",//这里设置你要访问的域名(或IP+端口) //线上
|
|
|
//target:"http://192.168.2.122:8080",//这里设置你要访问的域名(或IP+端口)
|
|
|
+ target: env_url,
|
|
|
changeOrigin:true,
|
|
|
pathRewrite:{
|
|
|
'^/api': '/'
|
|
|
@@ -14,5 +18,5 @@ module.exports = {
|
|
|
}
|
|
|
|
|
|
},
|
|
|
- outputDir:process.env.NODE_ENV === "development" ? 'devDist' : 'dist'
|
|
|
+ outputDir: process.env.NODE_ENV === "development" ? 'devDist' : 'dist'
|
|
|
};
|