diff --git a/vite.config.ts b/vite.config.ts index aa21024..48e4f03 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -24,7 +24,7 @@ const config = await readFile('config.example.yaml', 'utf-8'); const { server } = parse(config); export default defineConfig(({ isSsrBuild }) => ({ - base: `${prefix}/`, + base: isSsrBuild ? `${prefix}/` : undefined, plugins: [ reactRouterHonoServer(), reactRouter(),