21 Replies
2 years ago
what kind of app are you deploying
2 years ago
then nginx is not involved
2 years ago
please tell me the issues you are running into
2 years ago
may I ask why? what issues are you running into
It says on the nextjs docs:
The Next.js App Router supports streaming responses when self-hosting. If you are using Nginx or a similar proxy, you will need to configure it to disable buffering to enable streaming.
For example, you can disable buffering in Nginx by setting X-Accel-Buffering to no:
2 years ago
okay but nginx isn't involved in anyway when deploying a next app, and you can't configure anything about railways proxy
2 years ago
furthermore, railway's proxy does not buffer anyway
2 years ago
this is not the solution you are looking for
2 years ago
railway's proxy does not buffer
2 years ago
railway also doesn't use nginx, and neither does your deployment
2 years ago
please look for other solutions to the issue
4 months ago
sorry to necropost, ran into this problem as well; if you happen to have cloudflare proxying for your backend, it will modify the request in a way that changes the transfer encoding from chunked/stream to text/plain. to anyone running into this make sure cloudflare isn't the culprit