From 623f42e8de59c36383e993f3ed99a124ef305709 Mon Sep 17 00:00:00 2001 From: "X.Mo" Date: Fri, 15 Nov 2024 11:44:26 +0800 Subject: [PATCH] =?UTF-8?q?fix(vite-config):=20=E6=9C=AA=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=20`base`=20=E5=8F=82=E6=95=B0=EF=BC=8C=E5=AF=BC=E8=87=B4`VITE?= =?UTF-8?q?=5FAPP=5FROOT=5FBASE`=20=E6=97=A0=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/vite.config.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/web/vite.config.ts b/web/vite.config.ts index 44490ee9..49fe06af 100644 --- a/web/vite.config.ts +++ b/web/vite.config.ts @@ -23,6 +23,7 @@ export default async ({ mode, command }) => { const proxyPrefix = env.VITE_PROXY_PREFIX return defineConfig({ + base: env.VITE_APP_ROOT_BASE, // 开发服务器选项 https://cn.vitejs.dev/config/#server-options server: { open: true,