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

Maximum serverless size exceeded, than 250MB #25

Open
blackburn7 opened this issue Dec 28, 2024 · 0 comments
Open

Maximum serverless size exceeded, than 250MB #25

blackburn7 opened this issue Dec 28, 2024 · 0 comments

Comments

@blackburn7
Copy link

Found that my relatively light project would throw the following error on builds:

Error: A Serverless Function has exceeded the unzipped maximum size of 250 MB. : https://vercel.link/serverless-function-size

Adding the following vercel.json file helped:

{ "functions": { "api/**": { "excludeFiles": "{.next,*.cache,node_modules,public,app}/**" } } }

I believe the build cache is being included somehow in the build.

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

No branches or pull requests

1 participant