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...
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
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/workers-configuration-sites-start-from-worker-workflow-guide.md | A 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.text | A 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.text | A 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.text | The 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.text | A 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.text | A 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.text | A 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
- 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/configuration/sites/start-from-worker
