Streaming edge function hosted in Vercel is buffered by Cloudflare proxy

I’m deploying an edge function on Vercel. It streams a response and it works just fine when Cloudflare proxy is disabled. But, when the proxy is enabled, it seems it buffers the stream and send it as a whole once it’s done.

It used to work a few days ago with proxy enabled as well. This is confirmed by someone else: https://x.com/thinkmorebetter/status/1711841062002815457?s=20

4 Likes

What is the solution? To disable proxy? For my app it is started to buffer the stream

Just here to say I experienced the same issue and issued a ticket to Cloudflare. Just got a response back they fixed the issue today.

It should work again with Cloudflare Proxy enabled.

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.