Error: The Serverless Function "index" is 60mb which exceeds the maximum size limit of 50mb
See original GitHub issueI’ve been getting this issue below when deploying to vercel.
Error: The Serverless Function “index” is 60mb which exceeds the maximum size limit of 50mb. Learn more: https://vercel.com/docs/v2/platform/limits#serverless-function-size
Seems my static folder is more than 50mb. What’s strange though is I have NextJS applications with at least 1GB of data. Is this meant to happen? Is is a shortcoming of vercel-sapper in that it’s actually a serverless function run on vercel? What do?
vercel.json
{ "version": 2, "builds": [{ "src": "package.json", "use": "vercel-sapper" }] }
Issue Analytics
- State:
- Created 3 years ago
- Comments:18 (7 by maintainers)
Top Results From Across the Web
Exceeding size limits (50mb) for Serverless Functions #103
The maximum size for a Serverless Function is 50 MB and the maximum unzipped size is 250 MB including layers which are automatically...
Read more >NextJs: The Serverless Function exceeds the maximum size ...
It appears that when bundling the serverless function vercel is pulling in ALL assets within your project. So 50.55MB is likely the size...
Read more >Nuxt app won't deploy to vercel because 'The Serverless ...
Nuxt app won't deploy to vercel because 'The Serverless Function "index" is 67.21mb which exceeds the maximum size limit of 50mb.'.
Read more >Limits – Vercel Docs
The maximum size for a Serverless Function is 50 MB and the maximum unzipped size is 250 MB including layers which are automatically...
Read more >Azure subscription limits and quotas - Azure Resource Manager
A maximum of 1,000 rows can be viewed or downloaded in any report. Any additional data is truncated. Administrative units. An Azure AD...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I wanted to create an empty file
static/keep-static-${randomString}.txt
but I’m not sure how FileBlob vs FileFsRef works, so that will be for another time.Yeah, that’s cool. We’ve solved the main problem at least