From c0f9605f807cb6d27209a03f3b6a333cd1969e93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E6=98=8E=E5=AF=8C?= <212149997@qq.com> Date: Fri, 10 Jan 2025 15:18:06 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E8=BF=98=E5=8E=9Fbase=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vite.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vite.config.ts b/vite.config.ts index dd5a92f..4584bd2 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -9,7 +9,7 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => { // 获取`.env`环境配置文件 const env = loadEnv(mode, process.cwd()); return { - base: env.VITE_NODE_ENV === 'development' ? '/react-ts-template/' : undefined, // 此配置仅为github pages部署用,请自行修改或删除(一般情况下直接移除就行) + base: env.VITE_NODE_ENV === 'development' ? './' : undefined, // 此配置仅为github pages部署用,请自行修改或删除(一般情况下直接移除就行) plugins: [ react(), /**