Skip to content

Commit

Permalink
refactor: use getReadableWebStream
Browse files Browse the repository at this point in the history
  • Loading branch information
magne4000 committed Nov 25, 2024
1 parent 1e5aece commit c356c46
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/vike-node/src/runtime/vike-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
})
Expand Down

0 comments on commit c356c46

Please sign in to comment.