fix : 简化代码模板
This commit is contained in:
@@ -76,17 +76,11 @@ export default defineConfig({
|
||||
// rewrite: (path) => path.replace(/^\/api/, ""),
|
||||
// },
|
||||
"/api": {
|
||||
// target: "http://fateverse-vue.frp.feashow.cn",
|
||||
// changeOrigin: true,
|
||||
target: "http://192.168.31.176:9010",
|
||||
// target: "http://192.168.31.176:9010",
|
||||
target: "http://112.19.165.99:20002/",
|
||||
changeOrigin: true,
|
||||
rewrite: (path) => path.replace(/^\/api/, ""),
|
||||
},
|
||||
"/api/notice-ws": {
|
||||
target: "ws://fateverse-vue.frp.feashow.cn/api/notice-ws",
|
||||
ws: true,
|
||||
changeOrigin: true,
|
||||
},
|
||||
// rewrite: (path) => path.replace(/^\/api/, ""),
|
||||
}
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user