Skip to main content
Post

Pull-request-only preset now available for preview builds

Vercel added a pull-request-only preset to Ignored Build Step, so preview builds get skipped for branches that don't have an open pull request.

Production deployments still build, and so do previews for branches with an open pull request. On GitHub and GitLab projects, a skipped preview deployment is canceled before it uses any Build CPU Minutes.

To turn it on, go to your project's Deployments > Configuration, find Ignored Build Step, choose "Only build previews for pull requests" from the Behavior menu, and click Save. The preset fills in the ignore command for you.

Loading replies