Fix routing for vite prefix on dev vs build

This commit is contained in:
StealthBadger747
2025-09-27 11:14:04 -07:00
parent eb4669498a
commit 4803b2aa4a
+2 -2
View File
@@ -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(),