mirror of
https://github.com/tale/headplane.git
synced 2026-09-03 02:38: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 config = await readFile('config.example.yaml', 'utf-8');
|
||||||
const { server } = parse(config);
|
const { server } = parse(config);
|
||||||
|
|
||||||
export default defineConfig(({ isSsrBuild }) => ({
|
export default defineConfig(({ command, isSsrBuild }) => ({
|
||||||
base: isSsrBuild ? `${prefix}/` : undefined,
|
base: command === 'build' ? `${prefix}/` : undefined,
|
||||||
plugins: [
|
plugins: [
|
||||||
reactRouterHonoServer(),
|
reactRouterHonoServer(),
|
||||||
reactRouter(),
|
reactRouter(),
|
||||||
|
|||||||
Reference in New Issue
Block a user