From d9bd058cf3458d47495dcba98b6f50d327aaff2b Mon Sep 17 00:00:00 2001 From: odjbin <1042039504@qq.com> Date: Sun, 15 Sep 2024 17:16:28 +0800 Subject: [PATCH] =?UTF-8?q?fix=20:=20=E4=BF=AE=E5=A4=8Dvite.config.js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vite.config.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/vite.config.js b/vite.config.js index 1d04501..a3ab326 100644 --- a/vite.config.js +++ b/vite.config.js @@ -76,11 +76,16 @@ export default defineConfig({ // rewrite: (path) => path.replace(/^\/api/, ""), // }, "/api": { - // target: "http://192.168.31.176:9010", - target: "http://frp.feashow.cn:31800/", + // 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", + // changeOrigin: true, + // rewrite: (path) => path.replace(/^\/api/, ""), + // } }, }, });