From b3faed84cd96de71e3d50e096a71f33c9f569037 Mon Sep 17 00:00:00 2001 From: hxr <1490493387@qq.com> Date: Mon, 19 Feb 2024 23:29:47 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20:hammer:=20=E9=BB=98=E8=AE=A4=E7=BA=BF?= =?UTF-8?q?=E4=B8=8A=E6=8E=A5=E5=8F=A3=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vite.config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vite.config.ts b/vite.config.ts index 539c8fd5..0bc970ea 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -52,9 +52,9 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => { [env.VITE_APP_BASE_API]: { changeOrigin: true, // 线上接口地址 - // target: "http://vapi.youlai.tech", + target: "http://vapi.youlai.tech", // 开发接口地址 - target: "http://localhost:8989", + // target: "http://localhost:8989", rewrite: (path) => path.replace(new RegExp("^" + env.VITE_APP_BASE_API), ""), },