Skip to content
Discussion options

You must be logged in to vote

Checking the templates I'm going to apply this approach + removing the import { Response } from @remix-run/node so the native Response enters in action:

const body = new PassThrough();
const stream = createReadableStreamFromReadable(body);
responseHeaders.set("Content-Type", "text/html");
resolve(
new Response(stream, {
headers: responseHeaders,
status: responseStatusCode,
})
);

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@hakimLyon
Comment options

@MichaelDeBoey
Comment options

Answer selected by MichaelDeBoey
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants