We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When automatically deploying from GitHub, the excluded files are not getting removed since I am getting the error:
Error: The Serverless Function "api/index" is 650.74mb which exceeds the maximum size limit of 50mb. Learn More: https://vercel.link/serverless-function-size
If the images directory is excluded, the project would be significantly under this limit.
images
When deploying manually with vercel --prod, it works just fine. The issue only occurs with Git deployments.
vercel --prod
I have tried both using .vercelignore containing images, and using a vercel.json with excludeFiles:
.vercelignore
vercel.json
excludeFiles
{ "functions": { "api/index.php": { "runtime": "[email protected]", "excludeFiles": "{images/**,.github/**}" } }, "routes": [{ "src": "/(.*)", "dest": "/api/index.php" }], "github": { "silent": true } }
Neither of these approaches fix the issue of GitHub deployments failing.
The text was updated successfully, but these errors were encountered:
As a workaround, I disabled the Vercel GitHub integration and I'm using a GitHub action instead.
https://github.com/DenverCoder1/minimalistic-wallpaper-collection/blob/main/.github/workflows/vercel-deploy.yml
The vercel and vercel --prod commands work just fine, but there still seems to be a bug with the automatic builds.
vercel
Sorry, something went wrong.
Hi, still facing that problem?
It still occurs when using a connected Git repository
No branches or pull requests
Bug report
Description
When automatically deploying from GitHub, the excluded files are not getting removed since I am getting the error:
If the
images
directory is excluded, the project would be significantly under this limit.When deploying manually with
vercel --prod
, it works just fine. The issue only occurs with Git deployments.I have tried both using
.vercelignore
containingimages
, and using avercel.json
withexcludeFiles
:Neither of these approaches fix the issue of GitHub deployments failing.
Screenshot
The text was updated successfully, but these errors were encountered: