27 lines
761 B
JavaScript
27 lines
761 B
JavaScript
module.exports = {
|
|
chainWebpack: config => {
|
|
config.plugins.delete('case-sensitive-paths')
|
|
},
|
|
devServer: {
|
|
port: 1887,
|
|
proxy: {
|
|
'/api': {
|
|
// target: 'http://192.168.1.115:8000',
|
|
// target: 'http://39.98.184.58:8000',
|
|
target: 'http://39.98.44.136:80',
|
|
ws: true,
|
|
pathRewrite: {
|
|
'^/api': '/api'
|
|
}
|
|
},
|
|
'/qq/map': {
|
|
//本地服务接口地址
|
|
target: 'https://apis.map.qq.com',
|
|
ws: true,
|
|
pathRewrite: {
|
|
'^/qq/map': '/'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}; |