From 495d1510f9a9ebf1f488569f6ca24a6be56bc9f3 Mon Sep 17 00:00:00 2001 From: wujingjing <gersonwu@qq.com> Date: 星期四, 12 九月 2024 13:59:23 +0800 Subject: [PATCH] Revert "对接接口" --- vite.config.ts | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/vite.config.ts b/vite.config.ts index 0ce893e..6c1d208 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -35,14 +35,14 @@ host: '0.0.0.0', port: env.VITE_PORT as unknown as number, open: JSON.parse(env.VITE_OPEN), - hmr: false, + hmr: true, proxy: { - // '/wiai':{ - // target:'http://wi.cpolar.top', - // ws: true, - // changeOrigin: true, - // rewrite: (path) => path.replace(/^\/wiai/, ''), - // } + '/gitee': { + target: 'https://gitee.com', + ws: true, + changeOrigin: true, + rewrite: (path) => path.replace(/^\/gitee/, ''), + }, }, }, build: { -- Gitblit v1.9.3