diff --git a/examples/vike-react/.testRun.ts b/examples/vike-react/.testRun.ts
index 8bdb6bc14b..85b0fe6eba 100644
--- a/examples/vike-react/.testRun.ts
+++ b/examples/vike-react/.testRun.ts
@@ -43,4 +43,17 @@ function testRun(cmd: 'npm run dev' | 'npm run preview', isStem?: true) {
const pageContent = 'The Phantom MenaceRelease Date: 1999-05-19Director: George LucasProducer: Rick McCallum'
expect(await page.textContent('body')).toContain(pageContent)
})
+
+ test('ssr: false', async () => {
+ const html = await fetchHtml('/star-wars/4')
+ expect(html).toContain(' is render to HTML
+ expect(html).toContain('
My Vike + React App')
+ expect(html).toContain('')
+ expect(html).toContain('')
+ // isn't rendered to HTML
+ expect(html).not.toContain('')
+ expect(html).not.toContain('The Phantom Menace')
+ expect(html).toContain('
')
+ })
}
diff --git a/examples/vike-react/pages/+config.h.ts b/examples/vike-react/pages/+config.h.ts
index 68799adbda..bb0bd28a98 100644
--- a/examples/vike-react/pages/+config.h.ts
+++ b/examples/vike-react/pages/+config.h.ts
@@ -6,6 +6,7 @@ import vikeReact from 'vike-react/config'
// Default configs (can be overriden by pages)
export default {
+ ssr: true,
Layout,
Head,
//
diff --git a/examples/vike-react/pages/star-wars/@id/+config.h.ts b/examples/vike-react/pages/star-wars/@id/+config.h.ts
new file mode 100644
index 0000000000..108260ed19
--- /dev/null
+++ b/examples/vike-react/pages/star-wars/@id/+config.h.ts
@@ -0,0 +1,3 @@
+export default {
+ ssr: false
+}