From 1cb6697cc6f45bfaf35d0d84d7b3708a5a93e64b Mon Sep 17 00:00:00 2001 From: KindSeven <2845382437@qq.com> Date: Mon, 16 Sep 2024 21:48:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=8D=E5=8E=9F=E4=BA=86vite.config?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vite.config.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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",