nitrojs / nitrojs/nitro

Ability to specify request body size in supported runtimes.

Open
#2,150 1 comment 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

discussion v2
Dominant language
TypeScript
Stars
11.2k
Forks
899
Avg merge
2d 24m
Merged PRs (30d)
40

Description

Describe the feature

Hello!

I was recently working on a project and ran into the admittedly nice issue of getting HTTP 413 errors with a Bun server, as it turns out, it has the maxRequestBodySize setting on 128MB by default, which I can easily change in the bundled server code, but not in the nitro config itself, which isn't exactly optimal.

I don't know exactly how many of the runtimes nitro supports let you configure this directly, but I'd be willing to help contribute to this feature!

Additional information
  • Would you be willing to help implement this feature?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how Nitro configuration reaches the bundled Bun server, then identify which supported runtimes expose an equivalent request-body size setting. Done means Nitro configuration can control the request body limit for the supported runtimes, with behavior confirmed for each runtime that supports the option.

Written by the indexing model from the issue text.

Assessment

Tech stack
bun, typescript
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.