flat: huanan
This commit is contained in:
@@ -24,20 +24,20 @@ module.exports = {
|
||||
port: 1888,
|
||||
proxy: {
|
||||
"/api": {
|
||||
target: 'http://39.98.184.58:8000',
|
||||
target: 'http://39.98.184.58:88',
|
||||
ws: true,
|
||||
changeOrigin: true,
|
||||
pathRewrite: {
|
||||
'^/api': '/'
|
||||
}
|
||||
onProxyReq(proxyReq, req, res) {
|
||||
console.log(`[Proxy Request] ${req.method} ${req.url} -> ${proxyReq.protocol}//${proxyReq.host}${proxyReq.path}`);
|
||||
},
|
||||
},
|
||||
"/qq/map": {
|
||||
//本地服务接口地址
|
||||
target: "https://apis.map.qq.com",
|
||||
ws: true,
|
||||
pathRewrite: {
|
||||
"^/qq/map": "/"
|
||||
}
|
||||
// pathRewrite: {
|
||||
// "^/qq/map": "/"
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user