跳到正文
Vercel Blog(vercel.com)· Mehul Kar·· 6 天前品質評分52

Vercel 新增只為有開啟中 pull request 的分支建置預覽

Pull-request-only preset now available for preview builds

重點導讀

分支沒有開啟中的 pull request 時,預覽建置可能會消耗建置資源。

  • Vercel 在 Ignored Build Step 新增預設選項,可略過這類分支的預覽建置。
  • 有開啟中 pull request 的分支仍會建置預覽,正式環境部署也照常進行。GitHub 和 GitLab 專案中,被略過的預覽部署會在消耗 Build CPU Minutes 前取消。到專案的 Deployments > Configuration,在 Ignored Build Step 選擇 Only build previews for pull requests 並儲存,就能啟用這項設定。

AI 伴隨問答

自備 Key 深度分析

針對這篇報導有疑問?可直接點選快捷問題或向 AI 追問背景脈絡與技術細節:

正文

# Pull-request-only preset now available for preview builds - Vercel
Skip to content

[](https://vercel.com/home)

Copy Wordmark Copy Logo

Download Brand Assets Brand Guidelines

Products

Agent Stack

Core Platform

Tools

Resources

Learn

Build

Explore

EnterprisePricing

Get a DemoLog InSign Up

Ask AIDashboard

Image 1

  • * *

Products

Agent Stack

Core Platform

Tools

Resources

Learn

Build

Explore

Enterprise

Pricing

Get a Demo

Log InSign Up

Pull-request-only preset now available for preview builds

Image 2

Mehul KarMember of Technical Staff

BlogChangelog

17 Nov 2026

1 min read

Copy

A new Ignored Build Step preset lets you skip preview builds for branches without an open pull request. Production deployments and previews for branches with open pull requests continue to build.

On GitHub and GitLab projects, skipped preview deployments are canceled before consuming any Build CPU Minutes.

To enable this, open your project’s Deployments > Configuration. Under Ignored Build Step, select Only build previews for pull requests from the Behavior menu and click Save.

Image 3: The pull-request-only preset fills in the ignore command automatically.Image 4: The pull-request-only preset fills in the ignore command automatically.Image 5: The pull-request-only preset fills in the ignore command automatically.Image 6: The pull-request-only preset fills in the ignore command automatically.

The pull-request-only preset fills in the ignore command automatically.

Learn more in the Ignored Build Step documentation.

Agent Stack

Core Platform

Security

Tools

Frameworks

SDKs

Build

Learn

Explore

Company

Legal & Trust

Social

  • Image 7: VercelImage 8: Vercel

Loading status…

Select a display theme:system light dark

來源: Vercel Blog (vercel.com)
開啟原文

讀者討論

理性交流 · 即時討論