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.
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
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/workers-ci-cd-builds-build-branches-workflow-guide.md | A 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
- Open the most relevant file under
docs/for the exact documented workflow and wording. - Open
schemas/files for exact structured contracts. - Open
examples/files for concrete requests, commands, snippets, and manifests. - 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
