Skip to content

Commit

Permalink
Update packages/kit/src/runtime/server/page/index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
dummdidumm authored Jan 6, 2025
1 parent a95297a commit b4729a5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/kit/src/runtime/server/page/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ export async function render_page(event, page, options, manifest, state, resolve
}

const should_prerender_data = nodes.some(
// prerender in case of trailingSlash because the client retrieves that value from the server
(node) => node?.server?.load || node?.server?.trailingSlash !== undefined
);
const data_pathname = add_data_suffix(event.url.pathname);
Expand Down

0 comments on commit b4729a5

Please sign in to comment.