Prompt Buddy logoPrompt Buddy

cloudflare · Cloudflare Workers Docs

Workers Advanced setups

Configuring Cloudflare Workers Builds to work within a monorepo structure by connecting individual workers to a single repository and defining specific root directories, build commands, and watch paths.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Workers Advanced setups

Configuring Cloudflare Workers Builds to work within a monorepo structure by connecting individual workers to a single repository and defining specific root directories, build commands, and watch paths.

When To Use

Use when you need to deploy multiple Cloudflare Workers from a single repository using tools like pnpm workspaces or Turborepo and want to trigger individual builds based on specific directory changes.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/workers-ci-cd-builds-advanced-setups-workflow-guide.mdA guide explaining how to manage multiple Cloudflare Workers applications within a single monorepo structure.Questions about a guide explaining how to manage multiple Cloudflare Workers applications within a single monorepo structure.

What This Skill Covers

  • A monorepo is a single repository that contains multiple applications. This setup can be useful for a few reasons:
  • Main sections: Monorepos, Example Workers monorepos:, Getting Started, Example, Wrangler Environments.

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/advanced-setups