From c994d98cf9b4a081b695a7737bdc2cec37b40405 Mon Sep 17 00:00:00 2001 From: kkfluous Date: Mon, 30 Mar 2026 20:59:15 +0800 Subject: [PATCH] fix: Only use /info/ base path in production build Co-Authored-By: Claude Opus 4.6 (1M context) --- vite.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vite.config.ts b/vite.config.ts index 9223f5e..b5bfc30 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -6,7 +6,7 @@ import {defineConfig, loadEnv} from 'vite'; export default defineConfig(({mode}) => { const env = loadEnv(mode, '.', ''); return { - base: '/info/', + base: mode === 'production' ? '/info/' : '/', plugins: [react(), tailwindcss()], define: { 'process.env.GEMINI_API_KEY': JSON.stringify(env.GEMINI_API_KEY),