Skip to content

Commit 7468f1a

Browse files
[docs] note ssr/prerender dependency (#8144)
* [docs] note ssr/prerender dependency Docs for #3966 * move after "when not to prerender", shrink word count Co-authored-by: Rich Harris <hello@rich-harris.dev>
1 parent 7623ef9 commit 7468f1a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

documentation/docs/20-core-concepts/40-page-options.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ Accessing [`url.searchParams`](/docs/load#using-url-data-url) during prerenderin
6666

6767
Pages with [actions](/docs/form-actions) cannot be prerendered, because a server must be able to handle the action `POST` requests.
6868

69+
### Prerender and ssr
70+
71+
If you set the [ssr option](#ssr) to `false`, each request will result in the same empty HTML shell. Since this would result in unnecessary work, SvelteKit defaults to prerendering any pages it finds where `prerender` is not explicitly set to `false`.
72+
6973
### Route conflicts
7074

7175
Because prerendering writes to the filesystem, it isn't possible to have two endpoints that would cause a directory and a file to have the same name. For example, `src/routes/foo/+server.js` and `src/routes/foo/bar/+server.js` would try to create `foo` and `foo/bar`, which is impossible.

0 commit comments

Comments
 (0)