I am trying to deploy my python project with fastapi using vercel, but keep on facing this error: Error: A Serverless Function has exceeded the unzipped maximum size of 250 MB. : Limits.
this is my vercel.json:
{
“builds”: [
{
“src”: “/api/main.py”,
“use”: “@vercel/python”,
“config”: {
“excludeFiles”: “/{.next,.cache,node_modules,public,app}/**"
}
}
],
“routes”: [
{
“src”: "/(.)”,
“dest”: “api/main.py”
}
]
}
this is my build system report.
▲ Build system report
14:18:20.586• No memory or disk space problems detected
14:18:20.586• Folder sizes on disk:
14:18:20.586 ‣ Input source code: 234 MB
14:18:20.586 ‣ Build cache: <1 MB
14:18:20.586 ‣ Output files: 3 MB
14:18:20.586 ‣ Node modules: 157 MB
14:18:20.586• No files larger than 100 MB detected on disk
How can deploy my application without this error