Skip to content

Commit 6533100

Browse files
committed
shuffle things around
1 parent 3f59cc0 commit 6533100

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/adapter-static/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ If `true`, precompresses files with brotli and gzip. This will generate `.br` an
5050

5151
## SPA mode
5252

53-
You can use `adapter-static` to create a single-page app or SPA by specifying a **fallback page** and leaving the default of `false` for `config.kitprerender.default`.
53+
You can use `adapter-static` to create a single-page app or SPA by specifying a **fallback page**.
5454

5555
> In most situations this is not recommended: it harms SEO, tends to slow down perceived performance, and makes your app inaccessible to users if JavaScript fails or is disabled (which happens [more often than you probably think](https://kryogenix.org/code/browser/everyonehasjs.html)).
5656
@@ -69,7 +69,7 @@ export default {
6969
};
7070
```
7171

72-
When operating in SPA mode, only pages that have the [`prerender`](https://kit.svelte.dev/docs/page-options#prerender) option set will be prerendered at build time.
72+
When operating in SPA mode, you can omit `config.kit.prerender.default` (or set it to `false`, its default value), and only pages that have the [`prerender`](https://kit.svelte.dev/docs/page-options#prerender) option set will be prerendered at build time.
7373

7474
> ⚠️ During development, SvelteKit will still attempt to server-side render your routes. This means accessing things that are only available in the browser (such as the `window` object) will result in errors, even though this would be valid in the output app. To align the behavior of SvelteKit's dev mode with your SPA, you can [call `resolve()` with a parameter of `{ssr: false}` inside the `handle()` hook](https://kit.svelte.dev/docs/hooks#handle).
7575

0 commit comments

Comments
 (0)