[▲ Vercel Community](/) · [Categories](/categories) · [Latest](/latest) · [Top](/top) · [Live](/live)

[Feedback](/c/feedback/8)

# Glob patten support for "vercel.json"'s "git.deploymentEnabled" config

126 views · 0 likes · 2 posts


Michael Zeltner (@michaelcamper) · 2024-11-07

Hello there

I am using a Turborepo which contains several projects which are deloyed to Vercel with a rather simple Git workflow using a development branch for each app ("develop/app-a").

When pushing changes to "develop/app-a", a deployment for "app-b", "app-c", etc is triggered, which is not desirable.

After looking into the [project configuration](https://vercel.com/docs/projects/project-configuration/git-configuration#git.deploymentenabled), I thought this might do the trick. However, since every branch that should be ignored for a certain project has to be disabled explicitly, I had to implement a workaround:
- explicitly enable branches that should be deployed
- running a script that collects all enabled branches across all projects and disables them in every project where they are not explicitly allowed

This kind of works for only using a develop branch for each app, but will get out of hands when using feature branches (e.g. "feature/app-a/some-feature").

Therefore, it would be awesome to be able to configure the project like this:

```
{
  "git": {
    "deploymentEnabled": {
      "!develop/app-a": false,
      "!feature/app-a/*": false,
    }
  }
}
```

or even better: 
```
{
  "git": {
    "deploymentEnabled": {
      "main": true,
      "develop/app-a": true,
      "feature/app-a/*": true,
    }
  }
}
```

Best wishes,
Michael


Amy Egan (@amyegan) · 2024-11-07

Hello and welcome, @michaelcamper! You can use [Ignored Build Step](https://vercel.com/docs/projects/project-configuration/git-settings#ignored-build-step) to skip deploying unchanged projects. There are options to `Only build Turborepo app if there are changes`, to `Only build if there are changes in a folder`, or to run a custom script.

https://vercel.com/guides/how-do-i-use-the-ignored-build-step-field-on-vercel