Skip to main content

Granular branch matching for Git configuration in vercel.json

By Steven Van ·

Branch rules in vercel.json can now use glob patterns like internal-* to switch off deployments for many branches with one entry.

Vercel project configuration now accepts glob patterns in git.deploymentEnabled, so one rule can cover many branches. Before, Vercel only let you switch off deployments for branches you named one by one.

The Git configuration docs give an example: setting "internal-*": false stops deployments for any branch that begins with internal-. Patterns use minimatch syntax.

If a branch matches several rules and at least one is true, a deployment still happens. With "experiment-*": false and "*-dev": true, a branch named experiment-my-branch-dev will deploy.

Vercel
Vercel
The platform for frontend developers — deploy, preview, and scale web apps and AI agents with zero config.
View Vercel →

Original source

Read Granular branch matching for Git configuration in vercel.json on Creators Toolbox