diff --git a/vite.config.ts b/vite.config.ts index 4f5469f..77bcc46 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -23,8 +23,8 @@ if (!version) { const config = await readFile('config.example.yaml', 'utf-8'); const { server } = parse(config); -export default defineConfig(({ isSsrBuild }) => ({ - base: isSsrBuild ? `${prefix}/` : undefined, +export default defineConfig(({ command, isSsrBuild }) => ({ + base: command === 'build' ? `${prefix}/` : undefined, plugins: [ reactRouterHonoServer(), reactRouter(),