Files not getting excluded when deploying from GitHub Integration
DenverCoder1 opened this issue · comments
Bug report
- Version: 0.5.2
- Repository: https://github.com/DenverCoder1/minimalistic-wallpaper-collection
Description
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.
When deploying manually with vercel --prod
, it works just fine. The issue only occurs with Git deployments.
I have tried both using .vercelignore
containing images
, and using a vercel.json
with excludeFiles
:
{
"functions": {
"api/index.php": {
"runtime": "vercel-php@0.5.2",
"excludeFiles": "{images/**,.github/**}"
}
},
"routes": [{ "src": "/(.*)", "dest": "/api/index.php" }],
"github": {
"silent": true
}
}
Neither of these approaches fix the issue of GitHub deployments failing.
Screenshot
As a workaround, I disabled the Vercel GitHub integration and I'm using a GitHub action instead.
The vercel
and vercel --prod
commands work just fine, but there still seems to be a bug with the automatic builds.