Vercel now supports Build Commands for FastAPI and Flask

1 min read

You can now can easily deploy FastAPI and Flask with custom Build Commands, expanding support for Python projects on Vercel.

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.

This script will run after dependencies are installed, but before your application is deployed.

pyproject.toml
[tool.vercel.scripts]
build = "python build.py"

Learn more about the Build Command for Python projects.