Prompt Buddy logoPrompt Buddy

cloudflare · Cloudflare Workers Docs

Workers Build branches

Instructions for configuring which git branches trigger Workers Builds, including changing the production branch and enabling builds for non-production branches to enable preview URLs and pull request comments.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Workers Build branches

Instructions for configuring which git branches trigger Workers Builds, including changing the production branch and enabling builds for non-production branches to enable preview URLs and pull request comments.

When To Use

Use when you need to change the production branch for a Workers project or enable automated builds and preview URLs for non-production git branches.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/workers-ci-cd-builds-build-branches-workflow-guide.mdA guide explaining how to configure production and non-production branch builds for Cloudflare Workers using Git integration.Questions about a guide explaining how to configure production and non-production branch builds for Cloudflare Workers using Git inte...

What This Skill Covers

  • When you connect a git repository to Workers, commits made on the production git branch will produce a Workers Build. If you want to take advantage of previe...
  • Main sections: Change production branch, Configure non-production branch builds.

Workflow

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. Do not add behavior or configuration that is not present in the attached source files.

Canonical source: https://developers.cloudflare.com/workers/ci-cd/builds/build-branches