Vercel Functions now accept request bodies up to 20MiB in public beta
The limit rises from 4.5MB for projects that opt in, but only for certain runtimes and with a 4GB memory setting.
EDITOR | Friday 20 November 2026 | World

Vercel Functions can now accept inbound request bodies of up to 20MiB, up from 4.5MB. The change is in public beta.
To turn it on, a project sets the environment variable VERCEL_SUPPORT_LARGE_REQUEST_BODY=1. It applies to the whole project in the environment where it is set, so teams can test the larger limit on preview before enabling it in production. The project's functions must use the performance memory setting of 4GB.
The larger limit applies to functions on the Node.js, Python and Bun runtimes, and to Routing Middleware. Edge runtime functions and middleware keep the 4.5MB cap and return a 413 error, the standard code for a request that is too large, when a body exceeds it. Moving them to the larger limit means switching to the Node.js runtime.
Vercel also notes that once a project opts in, Routing Middleware receives headers and metadata but no request body, so middleware logic that depends on the body will not work.