Prompt Buddy logoPrompt Buddy

cloudflare · Cloudflare Workers Docs

Configuration Start from Worker

Integrates static asset serving into an existing Cloudflare Worker project using the Workers Sites method by configuring a directory in Wrangler, installing the kv-asset-handler package, and implementing the getAssetF...

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Configuration Start from Worker

Integrates static asset serving into an existing Cloudflare Worker project using the Workers Sites method by configuring a directory in Wrangler, installing the kv-asset-handler package, and implementing the getAssetF...

When To Use

Use when you need to add static asset serving capabilities to a pre-existing Cloudflare Worker project using Workers Sites.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/workers-configuration-sites-start-from-worker-workflow-guide.mdA guide explaining the deprecation of Workers Sites in favor of Workers Static Assets and how to transition configuration.Questions about a guide explaining the deprecation of Workers Sites in favor of Workers Static Assets and how to transition configura...
examples/workers-configuration-sites-start-from-worker-cloudflare-workers-sites-c.textA JSON configuration object defining the site bucket directory for Cloudflare Workers Sites.Exact payloads, commands, or snippets shown in A JSON configuration object defining the site bucket directory for Cloudflare Workers Sites.
examples/workers-configuration-sites-start-from-worker-cloudflare-workers-sites-w.textA wrangler.toml configuration snippet defining the [site] bucket directory for Cloudflare Workers Sites.Exact payloads, commands, or snippets shown in A wrangler.toml configuration snippet defining the [site] bucket directory for Cloudflare Workers Sites.
examples/workers-configuration-sites-start-from-worker-cloudflare-workers-kv-asse.textThe npm installation command for the @cloudflare/kv-asset-handler package used to serve assets from KV in Cloudflare Workers.Exact payloads, commands, or snippets shown in The npm installation command for the @cloudflare/kv-asset-handler package used to serve assets from KV in Cloudflare...
examples/workers-configuration-sites-start-from-worker-cloudflare-workers-kv-asse-2.textA JavaScript implementation of a Cloudflare Worker fetch handler that uses kv-asset-handler to serve static assets from a KV namespace.Exact payloads, commands, or snippets shown in A JavaScript implementation of a Cloudflare Worker fetch handler that uses kv-asset-handler to serve static assets fr...
examples/workers-configuration-sites-start-from-worker-cloudflare-workers-kv-asse-3.textA JavaScript code example demonstrating how to use the @cloudflare/kv-asset-handler package within a Worker fetch event to serve assets from KV storage.Exact payloads, commands, or snippets shown in A JavaScript code example demonstrating how to use the @cloudflare/kv-asset-handler package within a Worker fetch eve...
examples/workers-configuration-sites-start-from-worker-cloudflare-workers-wrangle.textA text representation of the npx wrangler deploy command used to initiate worker configuration.Exact payloads, commands, or snippets shown in A text representation of the npx wrangler deploy command used to initiate worker configuration.

What This Skill Covers

  • You should use Workers Static Assets to host full-stack applications instead of Workers Sites. It has been deprecated in Wrangler v4, and the Cloudflare Vite...
  • Main sections: Getting started.

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/configuration/sites/start-from-worker