Prompt Buddy logoPrompt Buddy

cloudflare · Cloudflare Workers Docs

Workers Routing

Configuring routing architectures for Cloudflare Workers static assets, including asset-only, Worker-first, Single Page Application (SPA), and Static Site Generation (SSG) modes.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Workers Routing

Configuring routing architectures for Cloudflare Workers static assets, including asset-only, Worker-first, Single Page Application (SPA), and Static Site Generation (SSG) modes.

When To Use

Use when you need to determine and configure how requests are routed between static assets and Worker scripts for SPAs, SSGs, or full-stack applications.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/workers-static-assets-routing-workflow-guide.mdA guide explaining different architectural configurations for routing static assets in Cloudflare Workers, including SPA, SSG, and full-stack approaches.Questions about a guide explaining different architectural configurations for routing static assets in Cloudflare Workers, including...

What This Skill Covers

  • Learn how to configure different architectures for the static assets of your Worker.

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/static-assets/routing