复原了vite.config

This commit is contained in:
KindSeven
2024-09-16 21:48:51 +08:00
parent 30cff06b5d
commit 1cb6697cc6

View File

@@ -76,10 +76,10 @@ export default defineConfig({
// rewrite: (path) => path.replace(/^\/api/, ""), // rewrite: (path) => path.replace(/^\/api/, ""),
// }, // },
"/api": { "/api": {
target: "http://frp.feashow.cn:31800/", // target: "http://frp.feashow.cn:31800/",
// target: "http://112.19.165.99:20002/", target: "http://112.19.165.99:20002/",
changeOrigin: true, changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, ""), // rewrite: (path) => path.replace(/^\/api/, ""),
}, },
// "/socket": { // "/socket": {
// target: "ws://frp.feashow.cn:8081/ws", // target: "ws://frp.feashow.cn:8081/ws",