oven-sh / bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
https://bun.sh
Other
74.16k stars 2.77k forks source link

The default value of `maxRequestBodySize` is not configurable. #9758

Open ZhUyU1997 opened 7 months ago

ZhUyU1997 commented 7 months ago

What is the problem this feature would solve?

I am porting a backend programming written by express to bunjs runtime. When I try to upload big file over 128MB, the browser throws "net::ERR_CONNECTION_ABORTED". maxRequestBodySize seems be inside of the Bun.server parameters and not exported in other methods. It may break the compatibility with node.js.

What is the feature you are proposing to solve the problem?

I suggest adding a field in bunfig.toml or another API to change it.

What alternatives have you considered?

No response

LUK3D commented 1 month ago

This is still a bug o version v1.1.27. I want to use Bung for my backend but this bug is a blocker because at this point, I don't know if it's a good idea migrating my project from Nodejs to Bun.