Zero-configuration Flask backends

1 min read

Flask, one of the most popular Python web application frameworks, can now be deployed instantly on Vercel with no configuration changes needed.

app.py
from flask import Flask
app = Flask(__name__)
@app.route("/")
def hello_world():
return "<p>Hello, World!</p>"

A "Hello World" Flask app on Vercel

Vercel's framework-defined infrastructure now recognizes and deeply understands Flask applications. This update removes the need for redirects in vercel.json or using the /api folder.

Backends on Vercel use Fluid compute with Active CPU pricing by default. This means your Flask app will automatically scale up and down based on traffic, and you only pay for time where your code is actively using CPU.

Deploy Flask on Vercel or visit the Flask on Vercel documentation.