Menu

Granular branch matching for Git configuration in vercel.json - Vercel
📰
0

Granular branch matching for Git configuration in vercel.json - Vercel

Vercel News·Tom Knickman·4 days ago
#4mVicBU5
Reading 0:00
15s threshold

Vercel now supports glob patterns (like testing-*) in the git.deploymentEnabled field, giving you more control over branch deployments.

Previously, you could disable deployments for specific branches by explicitly naming them. Now, you can use patterns to match multiple branches at once.

For example, the configuration below prevents deployments on Vercel if the branch begins with internal-.

{

"git": {

"deploymentEnabled": {

"internal-*": false

}

}

}

Learn more about Git configuration.

Read More