Vercel Functions can now be up to 5GB in package size
Mirrored from Vercel — AI for archival readability. Support the source by reading on the original site.
Vercel Functions now support Node.js and Python deployments up to 5GB in package size on Fluid compute, a 20x increase over the previous 250MB limit. Large Functions support is in public beta.
This makes Vercel compatible with backend workloads that do not fit within the 250MB limit, such as Python data and AI libraries, large generated clients, browser automation dependencies, image and video processing packages, and routes with substantial shared application code.
New projects are automatically enrolled in the beta. Existing projects can opt in by adding VERCEL_SUPPORT_LARGE_FUNCTIONS=1 as an Environment Variable, then redeploying, or you'll be asked to opt in if a Function ever crosses the 250MB limit. You can scope the variable to preview deployments first to test before enabling it in production.
Vercel still keeps Functions under 250MB in package size on the standard path. In eligible projects, only Functions that exceed the standard 250MB limit use the beta; other Functions in the same deployment are unchanged. The dashboard surfaces when a deployment is using Large Functions, so you always know exactly what's running.
Learn more in the Vercel Functions limits documentation.
Large Functions require Fluid compute and are not currently supported with Secure Compute or Static IPs. Support for 10GB and larger Functions is coming soon.
Discussion (0)
Sign in to join the discussion. Free account, 30 seconds — email code or GitHub.
Sign in →No comments yet. Sign in and be the first to say something.