Stop buffering for streaming responses when using NextResponse.rewrite
Unanswered
Ocicat posted this in #help-forum
OcicatOP
Hello I made a simple middleware that proxies some requests to a different backend by changing the URL and using NextResponse.rewrite. However, I have noticed that all requests that are supposed to stream some text now buffer and all the text gets sent at once. Is there a way around this? Thanks!