Skip to content

Commit bfc86e6

Browse files
committed
fix
1 parent 28f13bc commit bfc86e6

File tree

1 file changed

+5
-4
lines changed
  • packages/kit/src/runtime/server/page

1 file changed

+5
-4
lines changed

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -292,10 +292,11 @@ export async function render_response({
292292
options.paths.assets || (segments.length > 0 ? segments.map(() => '..').join('/') : '.');
293293

294294
// TODO flush chunks as early as we can
295-
const html = await resolve_opts.transformPageChunk({
296-
html: options.template({ head, body, assets, nonce: /** @type {string} */ (csp.nonce) }),
297-
done: true
298-
});
295+
const html =
296+
(await resolve_opts.transformPageChunk({
297+
html: options.template({ head, body, assets, nonce: /** @type {string} */ (csp.nonce) }),
298+
done: true
299+
})) || '';
299300

300301
const headers = new Headers({
301302
'content-type': 'text/html',

0 commit comments

Comments
 (0)