Skip to content

craftzing/remix-streaming

Repository files navigation

@craftzing/remix-streaming

code-review release

Development

From your terminal:

npm run dev

This starts your app in development mode, rebuilding assets on file changes.

Deployment

Create a release commit, tag it & push it. This will build a docker image & deploy it on the server.

git add package.json
git commit -m "chore(release): v1.2.3
git push
git tag v1.2.3
git push --tags

Streaming issues behind nginx proxy

Turns out by default nginx has this setting proxy_buffering turned on, this "buffers" the upstream response and only responds when it "finished buffering". Because of this, it was not possible to leverage Remix Streaming.

We would see a super slow response from the server as it's awaiting the Node.js process response to finish Screenshot 2023-11-10 at 12 58 56

After adding proxy_buffering off to our nginx config (bd2fa6df5b8b82f44969f9ad21a260e335ec83da), we saw an instant response from the server while the content is streaming, which is the desired behavior. Screenshot 2023-11-10 at 13 12 05

About

Test project to debug streaming in Remix behind a proxy & Cloudflare

Resources

Stars

Watchers

Forks

Packages

No packages published