Prompt Buddy logoPrompt Buddy

cloudflare · Cloudflare Workers Docs

Workers Start from existing

A multi-step guide to deploying a pre-existing static site project using Workers Sites by initializing Wrangler, configuring the build directory, installing the KV asset handler, and updating the Worker entry point.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Workers Start from existing

A multi-step guide to deploying a pre-existing static site project using Workers Sites by initializing Wrangler, configuring the build directory, installing the KV asset handler, and updating the Worker entry point.

When To Use

Use when you need to deploy an existing static site generated by tools like Hugo, Gatsby, Jekyll, or Eleventy to Cloudflare using Workers Sites.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/workers-configuration-sites-start-from-existing-workflow-guide.mdDocumentation explaining the deprecation of Workers Sites in favor of Workers Static Assets and the migration path for existing sites.Questions about documentation explaining the deprecation of Workers Sites in favor of Workers Static Assets and the migration path fo...
examples/workers-configuration-sites-start-from-existing-cloudflare-workers-wrang.textThe CLI command used to initialize a new Cloudflare Worker from an existing site using Wrangler.Exact payloads, commands, or snippets shown in The CLI command used to initialize a new Cloudflare Worker from an existing site using Wrangler.
examples/workers-configuration-sites-start-from-existing-cloudflare-workers-sites.textA configuration object defining the site bucket directory for a Cloudflare Workers Sites project.Exact payloads, commands, or snippets shown in A configuration object defining the site bucket directory for a Cloudflare Workers Sites project.
examples/workers-configuration-sites-start-from-existing-cloudflare-workers-sites-2.textA text configuration snippet defining the site bucket directory for a Cloudflare Workers Sites project.Exact payloads, commands, or snippets shown in A text configuration snippet defining the site bucket directory for a Cloudflare Workers Sites project.
examples/workers-configuration-sites-start-from-existing-cloudflare-workers-kv-as.textThe npm installation command for the @cloudflare/kv-asset-handler package used to serve assets from KV storage.Exact payloads, commands, or snippets shown in The npm installation command for the @cloudflare/kv-asset-handler package used to serve assets from KV storage.
examples/workers-configuration-sites-start-from-existing-cloudflare-workers-kv-as-2.textA JavaScript implementation using the @cloudflare/kv-asset-handler package to serve assets from a KV namespace within a Cloudflare Worker.Exact payloads, commands, or snippets shown in A JavaScript implementation using the @cloudflare/kv-asset-handler package to serve assets from a KV namespace within...
examples/workers-configuration-sites-start-from-existing-cloudflare-workers-kv-as-3.textA JavaScript code snippet demonstrating how to use the @cloudflare/kv-asset-handler package to serve assets from KV within a Worker fetch event.Exact payloads, commands, or snippets shown in A JavaScript code snippet demonstrating how to use the @cloudflare/kv-asset-handler package to serve assets from KV w...
examples/workers-configuration-sites-start-from-existing-cloudflare-workers-deplo.textThe npx wrangler deploy command used to deploy a Cloudflare Worker from an existing site configuration.Exact payloads, commands, or snippets shown in The npx wrangler deploy command used to deploy a Cloudflare Worker from an existing site configuration.
examples/workers-configuration-sites-start-from-existing-cloudflare-workers-sites-3.textA text configuration file defining the route and settings for deploying Cloudflare Workers Sites from an existing project.Exact payloads, commands, or snippets shown in A text configuration file defining the route and settings for deploying Cloudflare Workers Sites from an existing pro...
examples/workers-configuration-sites-start-from-existing-cloudflare-workers-start.textA text configuration snippet defining a route pattern for a Cloudflare Worker starting from an existing site.Exact payloads, commands, or snippets shown in A text configuration snippet defining a route pattern for a Cloudflare Worker starting from an existing site.

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-existing