diff --git a/vite.config.js b/vite.config.js index 3ba2d72..a3ab326 100644 --- a/vite.config.js +++ b/vite.config.js @@ -76,10 +76,10 @@ export default defineConfig({ // rewrite: (path) => path.replace(/^\/api/, ""), // }, "/api": { - target: "http://frp.feashow.cn:31800/", - // target: "http://112.19.165.99:20002/", + // target: "http://frp.feashow.cn:31800/", + target: "http://112.19.165.99:20002/", changeOrigin: true, - rewrite: (path) => path.replace(/^\/api/, ""), + // rewrite: (path) => path.replace(/^\/api/, ""), }, // "/socket": { // target: "ws://frp.feashow.cn:8081/ws",