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), ""), },