You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mudu-vx/vue.config.js

33 lines
792 B

/*
* @Author: 付刚
* @Date: 2021-06-03 18:19:56
* @LastEditors: 许宏杰
* @LastEditTime: 2022-06-21 14:14:20
* @FilePath: \MuduAPP\vue.config.js
*/
module.exports = {
publicPath: '/demo/mudu-vx/', //APP打包
// publicPath: '/demo/mudu-app-ceshi/',
// publicPath: '/demo/mudu-app-zhengshi/',
devServer: {
proxy: {
'/mdzServer': {
target: 'http://www.jichuanglanhai.com:89', //代理接口
changeOrigin: true,
pathRewrite: {},
},
'/api/staticfile/video/': {
target: 'http://39.101.188.84:89', //代理接口
changeOrigin: true,
pathRewrite: {},
},
'/mudu/': {
target: 'http://localhost:9028', //代理接口
changeOrigin: true,
pathRewrite: {},
},
},
},
}