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.

Most basic configuration exceeds Vercel limits

See original GitHub issue

I have a tiny application comprised of a grand total of three pages with an API call and a smidgen of business logic and when I push to Vercel it says it’s too big to run.

Error: The Serverless Function "index" is 66.68mb which exceeds the maximum size limit of 50mb. Learn more: https://vercel.com/docs/v2/platform/limits#serverless-function-size`

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:18 (6 by maintainers)

github_iconTop GitHub Comments

4reactions
miteyemacommented, May 31, 2020

@selfagency @danielroe I had a similar problem. You have to move some dependencies to devDependencies in your package.json. You don’t need to put everything in dependencies, because that is what makes your single serverless function to blow up. I see you have things like node-sass and sass-loader. They all can me moved to devDependencies. I did the same and everything still works fine.

1reaction
axelthat2commented, Feb 22, 2022

Fixed the problem. Apparently to use nuxt content with vercel builder you have to do add this in your vercel.json,

"config": {
  "serverFiles": [".nuxt/content/**", "content/**"]
}

Full vercel.json,

{
  "version": 2,
  "builds": [
    {
      "src": "nuxt.config.js",
      "use": "@nuxtjs/vercel-builder",
      "config": {
        "serverFiles": [".nuxt/content/**", "content/**"]
      }
    }
  ]
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

Limits – Vercel Docs
The maximum number of files that can be uploaded when creating a CLI Deployment is 15,000 for source files. Deployments that contain more...
Read more >
Most basic configuration exceeds Vercel limits #284 - GitHub
I have a tiny application comprised of a grand total of three pages with an API call and a smidgen of business logic...
Read more >
How, When, and Why you should switch from Vercel ... - Medium
Basically, anything that will not exceed the 100GB bandwidth limit (it is quite impossible to exceed honestly when you have a small number...
Read more >
VueJS - The Serverless Function exceeds the maximum size ...
I'm new working with VueJS and when trying to deploy my project to Vercel I'm getting the following ...
Read more >
File Size limit exceeded when trying to deploy app ... - Reddit
So I tried using the vercel cli and when deploying I get the file size limit exceeded error. Can someone help me find...
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