https://github.com/craftzing/remix-streaming
Test project to debug streaming in Remix behind a proxy & Cloudflare
https://github.com/craftzing/remix-streaming
Last synced: 12 months ago
JSON representation
Test project to debug streaming in Remix behind a proxy & Cloudflare
- Host: GitHub
- URL: https://github.com/craftzing/remix-streaming
- Owner: craftzing
- Created: 2023-11-10T07:34:44.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-01T08:24:57.000Z (over 2 years ago)
- Last Synced: 2025-05-05T10:57:05.853Z (about 1 year ago)
- Language: TypeScript
- Homepage: https://remix-streaming.craftzing.dev
- Size: 154 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# @craftzing/remix-streaming
[](https://github.com/craftzing/remix-streaming/actions/workflows/code-review.yml)
[](https://github.com/craftzing/remix-streaming/actions/workflows/release.yml)
## Development
From your terminal:
```sh
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.
```sh
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](https://remix.run/docs/en/main/guides/streaming).
We would see a super slow response from the server as it's awaiting the Node.js process response to finish

After adding `proxy_buffering off` to our nginx config ([bd2fa6df5b8b82f44969f9ad21a260e335ec83da](https://github.com/craftzing/remix-streaming/commit/bd2fa6df5b8b82f44969f9ad21a260e335ec83da)), we saw an instant response from the server while the content is streaming, which is the desired behavior.
