Hi everyone, I'm struggling to stream my response using Cloudflare Pages (Workers underneath for dynamic requests) + SvelteKit. I created a minimal reproducible example to showcase the issue.
stream
stream
is mocking an object implementing a LLM.
When this endpoint is called, the response is buffered and delivered as a whole, after all characters are read, with no
Transfer-Encoding: chunked
Transfer-Encoding: chunked
. When run locally with Vite, the response is streamed correctly.