Skip to content

Commit

Permalink
move ssr: true from vite.config to react-router.config in basic template
Browse files Browse the repository at this point in the history
  • Loading branch information
brookslybrand committed Nov 20, 2024
1 parent 20899a0 commit 8117606
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 2 additions & 0 deletions templates/basic/react-router.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ import type { Config } from "@react-router/dev/config";

export default {
// Config options...
// Server-side render by default, to enable SPA mode set this to `false`
ssr: true,
} satisfies Config;
8 changes: 1 addition & 7 deletions templates/basic/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,5 @@ import tsconfigPaths from "vite-tsconfig-paths";
import { defineConfig } from "vite";

export default defineConfig({
plugins: [
reactRouter({
// Server-side render by default, to enable SPA mode set this to `false`
ssr: true,
}),
tsconfigPaths(),
],
plugins: [reactRouter(), tsconfigPaths()],
});

0 comments on commit 8117606

Please sign in to comment.