Set bodyLimit to 100 MB by default to fix error 413#511
Conversation
WalkthroughThe changes enhance the configuration capabilities of a Node.js application by introducing HTTP/2 support and increasing the body payload limit for the Fastify server. Modifications are made in three files: Changes
Sequence DiagramsequenceDiagram
participant Config as Configuration
participant Worker as Fastify Worker
participant Server as HTTP/2 Server
Config->>Worker: Provide fastifyServerOptions
Worker->>Server: Configure with options
Server-->>Worker: Server initialized
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
Note 🎁 Summarized by CodeRabbit FreeYour organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
bodyLimitto 100 MBfastifyServerOptionsto the config to allow customizationSummary by CodeRabbit
Summary by CodeRabbit
New Features
Improvements
Documentation
fastifyServerOptionsand renaming of configuration options.