Skip to content

Commit 8117606

Browse files
committed
move ssr: true from vite.config to react-router.config in basic template
1 parent 20899a0 commit 8117606

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

templates/basic/react-router.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@ import type { Config } from "@react-router/dev/config";
22

33
export default {
44
// Config options...
5+
// Server-side render by default, to enable SPA mode set this to `false`
6+
ssr: true,
57
} satisfies Config;

templates/basic/vite.config.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,5 @@ import tsconfigPaths from "vite-tsconfig-paths";
33
import { defineConfig } from "vite";
44

55
export default defineConfig({
6-
plugins: [
7-
reactRouter({
8-
// Server-side render by default, to enable SPA mode set this to `false`
9-
ssr: true,
10-
}),
11-
tsconfigPaths(),
12-
],
6+
plugins: [reactRouter(), tsconfigPaths()],
137
});

0 commit comments

Comments
 (0)