From d0b22b5ae1223a7ee36b4a5d188daa312ab57fc1 Mon Sep 17 00:00:00 2001 From: shilei <965026003@qq.com> Date: Thu, 26 Sep 2024 15:40:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=8A=9F=E8=83=BD=E5=88=86=E6=94=AF?= =?UTF-8?q?=E5=88=87=E6=8D=A29.26?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vite.config.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vite.config.ts b/vite.config.ts index 99084ff..8af1b8a 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -65,6 +65,11 @@ const viteConfig = defineConfig((mode: ConfigEnv) => { target: env.VITE_API_URL, changeOrigin: true, }, + '/realtime': { + target: 'http://192.168.2.88:5034', + changeOrigin: true, + rewrite: (path) => path.replace(/^\/realtime/, ''), + }, }, }, build: {