gornostay25 / svelte-adapter-bun

A SvelteKit adapter for Bun
MIT License
537 stars 34 forks source link

Not working with streaming #44

Open Mokto opened 11 months ago

Mokto commented 11 months ago

When trying to use streaming with Bun (https://kit.svelte.dev/docs/load#streaming-with-promises), the page waits for the whole data to load. It doesn't stream promises.

Thanks.

ambergristle commented 9 months ago

Hi @Mokto! I ran into a similar issue, but it turned out to be the deployment platform. Can you share some details about your current env/deployment setup?

From the SvelteKit docs:

On platforms that do not support streaming, such as AWS Lambda or Firebase, responses will be buffered. This means the page will only render once all promises resolve. If you are using a proxy (e.g. NGINX), make sure it does not buffer responses from the proxied server.

Mokto commented 7 months ago

Doesn't work locally.

KyleFontenot commented 2 months ago

Would be curious about this with the new Bun release: https://bun.sh/blog/bun-v1.1.27