From your terminal:
npm run dev
This starts your app in development mode, rebuilding assets on file changes.
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
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
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.