question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: The Serverless Function "index" is 60mb which exceeds the maximum size limit of 50mb

See original GitHub issue

I’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:closed
  • Created 3 years ago
  • Comments:18 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
thghcommented, Jun 5, 2020

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.

0reactions
jamiekieranmartincommented, Jun 6, 2020

Yeah, that’s cool. We’ve solved the main problem at least

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found