diff --git a/packages/server/src/ssr.ts b/packages/server/src/ssr.ts index 2fe9652be93d..f65a0bc86dfe 100644 --- a/packages/server/src/ssr.ts +++ b/packages/server/src/ssr.ts @@ -353,9 +353,7 @@ export default function createRequestHandler( }, }); - stream.pipeThrough(transformStream); - - let res = new Response(stream, { + let res = new Response(stream.pipeThrough(transformStream), { headers: { 'content-type': 'text/html; charset=utf-8', },