mirror of
https://github.com/tale/headplane.git
synced 2026-07-26 07:48:14 +00:00
Fix routing for vite prefix on dev vs build
This commit is contained in:
+2
-2
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user