Vercel now supports Build Commands for FastAPI and Flask
In addition to defining a Build Command in the project Settings dashboard, you can also define a build script in [tool.vercel.scripts] inside your pyproject.toml to run after dependencies are installed and before your application is deployed.
Ricardo GonzalezSoftware Engineer