diff --git a/packages/vike-node/src/runtime/vike-handler.ts b/packages/vike-node/src/runtime/vike-handler.ts index b8a8baa..f226ab8 100644 --- a/packages/vike-node/src/runtime/vike-handler.ts +++ b/packages/vike-node/src/runtime/vike-handler.ts @@ -96,10 +96,7 @@ export const renderPageHandler = ((options?) => async (request, context, runtime } }) - const { readable, writable } = new TransformStream() - response.pipe(writable) - - return new Response(readable, { + return new Response(response.getReadableWebStream(), { status: response.statusCode, headers: response.headers })