I am relatively new to Python, but I recently developed a project using FastAPI and crewai.
The project runs fine locally.
However, when I try to deploy it on Vercel, I encounter the following error:
“Error: Size of uploaded file exceeds 300MB”
This can happen when your function is built and the bundle size exceeds our 250MB maximum.
You can use the vercel build CLI command and check the .vercel/output folder to help you identify the source of the problem. Alternatively, you could remove the functions and dependencies one by one until the project is deployed successfully.
Vercel CLI 39.3.0
WARN! Due to `builds` existing in your configuration file, the Build and Development Settings defined in your Project Settings will not apply. Learn More: https://vercel.link/unused-build-settings
Error: Unable to find any supported Python versions.
Learn More: http://vercel.link/python-version
Sharing a related update — Vercel has increased the Python Functions bundle size limit to 500MB unzipped (previously 250MB). If your CrewAI + LangChain bundle was pushing against that unzipped size cap, the new limit gives a lot more room.
Note: the “uploaded file exceeds 300MB” error refers to the compressed upload size, which is a separate (but related) constraint. If you’re still hitting that after redeploying, feel free to reply and we can dig into it further.