Skip to content

Commit 0bb5cd3

Browse files
committed
fix tests + docs
1 parent 7a617f9 commit 0bb5cd3

File tree

5 files changed

+9
-1
lines changed

5 files changed

+9
-1
lines changed

documentation/docs/12-page-options.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,4 +83,4 @@ Normally, SvelteKit renders your page on the server first and sends that HTML to
8383
export const ssr = false;
8484
```
8585

86-
In contrast to the other options, you can set this option in both `+page.js` and `+layout.js`. `ssr` options in subsequent layouts or the page overwrite earlier options. You cannot set this option in `+page.server.js` or `+layout.server.js`. This option has no effect if server-side rendering was already [disabled through the handle hook](/docs/hooks#handle).
86+
In contrast to the other options, you can set this option in both `+page.js` and `+layout.js`. `ssr` options in subsequent layouts or the page overwrite earlier options. You cannot set this option in `+page.server.js` or `+layout.server.js`. This option overwrites the `ssr` option [in the handle hook](/docs/hooks#handle).

packages/kit/test/apps/basics/src/routes/no-ssr/browser-only-global/+page.svelte

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22
document;
33
</script>
44

5+
{document}
6+
57
<p>Works</p>

packages/kit/test/apps/basics/src/routes/no-ssr/ssr-page-config/+page.svelte

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22
document;
33
</script>
44

5+
{document}
6+
57
<p>Works</p>

packages/kit/test/apps/basics/src/routes/no-ssr/ssr-page-config/layout/inherit/+page.svelte

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22
document;
33
</script>
44

5+
{document}
6+
57
<p>Works</p>

packages/kit/test/apps/basics/src/routes/no-ssr/ssr-page-config/layout/overwrite/+page.svelte

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22
document;
33
</script>
44

5+
{document}
6+
57
<p>You shouldn't see this</p>

0 commit comments

Comments
 (0)