Skip to content

Commit f91a89b

Browse files
committed
Refactor SSR configuration in react-router to maintain server-side rendering
1 parent 6e599d6 commit f91a89b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test-app/react-router.config.ts

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

33
export default {
44
// Config options...
5-
ssr: true, // Since we cannot disable ssr on selected pages, setting it to false here and using prerender for one path specifically
6-
prerender: ["/ssr"], // This will essentially prerender and hamari ssr ki testing ho jayegi
5+
ssr: true,
76
} satisfies Config;

0 commit comments

Comments
 (0)