Skip to content

docs: show route-specific json limits#2443

Open
vibhor-aggr wants to merge 1 commit into
expressjs:mainfrom
vibhor-aggr:docs/route-specific-json-limit
Open

docs: show route-specific json limits#2443
vibhor-aggr wants to merge 1 commit into
expressjs:mainfrom
vibhor-aggr:docs/route-specific-json-limit

Conversation

@vibhor-aggr

Copy link
Copy Markdown

Summary

Closes #1421.

Adds a route-specific express.json() limit example to the 4.x and 5.x Express object API docs.

The example shows how to:

  • mount a larger JSON parser on /upload
  • mount the default/smaller parser for the rest of the app
  • order the route-specific parser before the broader parser so the broader limit does not apply to that route

Verification

  • npx prettier --check src/content/api/4x/api/express/index.mdx src/content/api/5x/api/express/index.mdx
  • npx cspell --no-progress src/content/api/4x/api/express/index.mdx src/content/api/5x/api/express/index.mdx
  • npm run lint -- src/content/api/4x/api/express/index.mdx src/content/api/5x/api/express/index.mdx
  • git diff --check
  • npm run build

@vibhor-aggr vibhor-aggr requested a review from a team as a code owner July 11, 2026 07:11
@netlify

netlify Bot commented Jul 11, 2026

Copy link
Copy Markdown

Deploy Preview for expressjscom-preview ready!

Name Link
🔨 Latest commit 30c5af8
🔍 Latest deploy log https://app.netlify.com/projects/expressjscom-preview/deploys/6a51eca5fc1eee0009734d31
😎 Deploy Preview https://deploy-preview-2443--expressjscom-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 96 (🔴 down 1 from production)
Accessibility: 100 (no change from production)
Best Practices: 100 (no change from production)
SEO: 100 (no change from production)
PWA: 80 (no change from production)
View the detailed breakdown and full score reports
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document customizing express.json() size limit for specific routes

1 participant