Vercel Functions now support request bodies up to 20MiB
Vercel Functions now allow inbound request bodies up to 20MiB, up from 4.5MB, during public beta. To enable this feature, set the VERCEL_SUPPORT_LARGE_REQUEST_BODY=1 environment variable, which applies project-wide and requires a 4GB memory setting for functions on Node.js, Python, and Bun runtimes, as well as Routing Middleware. Edge runtime functions retain the 4.5MB limit and return a 413 error for oversized bodies. When enabled, Routing Middleware receives headers and metadata but not the request body to avoid duplication and reduce latency. Developers should read large request bodies promptly to prevent memory issues.



