Skip to content

Commit 8c89798

Browse files
committed
add comment
1 parent 65e4e14 commit 8c89798

File tree

1 file changed

+3
-0
lines changed
  • packages/kit/src/runtime/server/page

1 file changed

+3
-0
lines changed

packages/kit/src/runtime/server/page/index.js

+3
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ export async function render_page(event, page, options, manifest, state, resolve
9898
/** @type {import('./types.js').Fetched[]} */
9999
const fetched = [];
100100

101+
// renders an empty 'shell' page if SSR is turned off and if there is
102+
// no server data to prerender. As a result, the load functions and rendering
103+
// only occur client-side.
101104
if (get_option(nodes, 'ssr') === false && !(state.prerendering && should_prerender_data)) {
102105
return await render_response({
103106
branch: [],

0 commit comments

Comments
 (0)