megachangelog
Feature

Python projects now support routing rules

Python projects can now use routing rules to set response headers or rewrite requests to internal paths. Rules are evaluated by the Vercel CDN before requests reach your application and take effect immediately without requiring a new deployment.

Python projects can now use to set response headers or rewrite requests to internal paths, including apps built with FastAPI, Django, and Flask.routing rules

The evaluates rules before requests reach your application, so changes apply without a new deployment.Vercel CDN

For example, this FastAPI app serves a route:/new

To send requests for to that route, create a rewrite from the CDN tab in your project dashboard or with the :/oldVercel CLI

Published rules take effect immediately across all regions, and you can roll back to a previous version from the History tab.

You can also manage rules from Python with the , which wraps the . stages the rule, and publishes it: SDKvercelVercel REST APIadd_routeupdate_route_version

Rewrites can also be defined in :vercel.json

Project-level rules live outside your deployment and are evaluated before its routes, so a published rule takes precedence over a rewrite for the same path. Each surface fits a different workflow:vercel.json

Update Vercel CLI to the latest version and read the to get started.routing documentation

Read more

How you define it

Takes effect

Best for

CDN tab in the dashboard

On publish

Editing and testing rules visually

Vercel CLI

On publish

One-off changes from the terminal

Python SDK or REST APIvercel

On publish

Automation and CI/CD

vercel.json

On each deployment

Rewrites that ship with the application code

pythonroutingcdnfastapidjango

Source: original entry ↗

More from Vercel

Follow Vercel to get its new changes in your feed and email digest.

Announcement

Muse Wonder now available on AI Gateway

Meta's Muse Wonder model is now accessible through Vercel's AI Gateway, supporting coding tasks, multi-step agent workflows, and computer use with a 1M-token context window. Users can access the model via a single API key without creating a separate Meta account and use it for text, image, PDF processing, tool calling, and structured outputs.

ai-gatewaymodelsagentscodingmeta
Feature

Agents can now buy domains with the Vercel CLI

Vercel CLI now enables agents to discover, check availability, and initiate domain purchases through structured commands, with purchase confirmation remaining under user control via interactive terminal or dashboard approval.

clidomainsagentsapi
Announcement

New Pro teams default to 30-day deployment retention

Pro teams now default to a 30-day deployment retention period to balance keeping recent history available while reducing storage costs. You can configure a longer retention period in team settings if needed.

deploymentsstoragepro-teamspricing
See all Vercel changes →