Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: The Serverless Function "api/index" is 68.16mb which exceeds the maximum size limit of 50mb. Learn More: https://vercel.link/serverless-function-size #113

Open
matt-j-m opened this issue Jan 20, 2023 · 2 comments

Comments

@matt-j-m
Copy link

Running into the above error. Steps to reproduce:

  1. Clone example https://github.com/juicyfx/vercel-examples/tree/master/php
  2. Update runtime to [email protected] in vercel.json
  3. Attempt to deploy

This is my first time using Vercel, sorry if I am missing something basic.

Here is the full output from Vercel

[13:58:13.793] Cloning github.com/***************************** (Branch: *************, Commit: *******)
[13:58:16.783] Cloning completed: 2.990s
[13:58:16.938] Restored build cache
[13:58:16.993] Running "vercel build"
[13:58:17.592] Vercel CLI 28.12.7
[13:58:17.782] > Installing Builder: [email protected]
[13:58:21.951] 🐘 Downloading user files
[13:58:21.952] 🐘 Downloading PHP runtime files
[13:58:21.971] 🐘 Creating lambda
[13:58:22.367] Build Completed in /vercel/output [420ms]
[13:58:28.894] Failed to process build result for "api/index". Data: {"type":"Lambda"}.
[13:58:28.897] Error: The Serverless Function "api/index" is 68.16mb which exceeds the maximum size limit of 50mb. Learn More: https://vercel.link/serverless-function-size

@matt-j-m
Copy link
Author

Forgot to add, my entire project is 11.8 KB, not sure where the "68.16mb" is coming from

@rolandihms
Copy link
Contributor

rolandihms commented Jan 20, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants