mirror of https://gitee.com/pnoker/dc3-web.git
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.
33 lines
857 B
33 lines
857 B
module.exports = {
|
|
publicPath: './',
|
|
lintOnSave: true,
|
|
productionSourceMap: false,
|
|
devServer: {
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://localhost:8400',
|
|
changeOrigin: true,
|
|
ws: true,
|
|
pathRewrite: {
|
|
'^/api': ''
|
|
}
|
|
},
|
|
'/user_api': {
|
|
target: 'http://localhost:8400',
|
|
changeOrigin: true,
|
|
ws: true,
|
|
pathRewrite: {
|
|
'^/user_api': ''
|
|
}
|
|
},
|
|
'/device_api': {
|
|
target: 'http://localhost:8600',
|
|
changeOrigin: true,
|
|
ws: true,
|
|
pathRewrite: {
|
|
'^/device_api': ''
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}; |