Prompt Buddy logoPrompt Buddy

cloudflare · Cloudflare Workers Docs

Workers Start from scratch

A guide for initializing and deploying a legacy Workers Sites project using a starter repository, npm, and Wrangler.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Workers Start from scratch

A guide for initializing and deploying a legacy Workers Sites project using a starter repository, npm, and Wrangler.

When To Use

Use when you need to manually set up a legacy Workers Sites project from a template and deploy it to Cloudflare using Wrangler.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/workers-configuration-sites-start-from-scratch-workflow-guide.mdA guide explaining how to set up Cloudflare Workers Sites from scratch and recommending the transition to Workers Static Assets.Questions about a guide explaining how to set up Cloudflare Workers Sites from scratch and recommending the transition to Workers Sta...
examples/workers-configuration-sites-start-from-scratch-cloudflare-workers-sites-.textA shell command to clone the Cloudflare Worker Sites template repository using a specific branch.Exact payloads, commands, or snippets shown in A shell command to clone the Cloudflare Worker Sites template repository using a specific branch.
examples/workers-configuration-sites-start-from-scratch-cloudflare-workers-wrangl.textA text guide demonstrating how to initialize and run a Cloudflare Workers project from scratch using the wrangler dev command.Exact payloads, commands, or snippets shown in A text guide demonstrating how to initialize and run a Cloudflare Workers project from scratch using the wrangler dev...
examples/workers-configuration-sites-start-from-scratch-cloudflare-workers-start-.textThe terminal command used to deploy a Cloudflare Worker from scratch using the Wrangler CLI.Exact payloads, commands, or snippets shown in The terminal command used to deploy a Cloudflare Worker from scratch using the Wrangler CLI.
examples/workers-configuration-sites-start-from-scratch-cloudflare-workers-sites--2.textA wrangler.toml configuration file for setting up a Cloudflare Workers Sites project from scratch.Exact payloads, commands, or snippets shown in A wrangler.toml configuration file for setting up a Cloudflare Workers Sites project from scratch.
examples/workers-configuration-sites-start-from-scratch-cloudflare-workers-sites--3.textA wrangler.toml configuration file defining a site name and schema reference for a Cloudflare Workers Sites project.Exact payloads, commands, or snippets shown in A wrangler.toml configuration file defining a site name and schema reference for a Cloudflare Workers Sites project.
examples/workers-configuration-sites-start-from-scratch-cloudflare-workers-sites--4.textA wrangler.toml configuration file template for setting up a Cloudflare Workers Sites project from scratch.Exact payloads, commands, or snippets shown in A wrangler.toml configuration file template for setting up a Cloudflare Workers Sites project from scratch.
examples/workers-configuration-sites-start-from-scratch-cloudflare-workers-sites--5.textA wrangler.toml configuration file template demonstrating the compatibility date and basic setup for starting a Cloudflare Workers Sites project from scratch.Exact payloads, commands, or snippets shown in A wrangler.toml configuration file template demonstrating the compatibility date and basic setup for starting a Cloud...
examples/workers-configuration-sites-start-from-scratch-cloudflare-workers-sites--6.textA wrangler.toml configuration file defining routes and site settings for a Cloudflare Workers Sites project.Exact payloads, commands, or snippets shown in A wrangler.toml configuration file defining routes and site settings for a Cloudflare Workers Sites project.
examples/workers-configuration-sites-start-from-scratch-cloudflare-workers-sites--7.textA text configuration snippet defining the route pattern for a Cloudflare Workers Sites deployment.Exact payloads, commands, or snippets shown in A text configuration snippet defining the route pattern for a Cloudflare Workers Sites deployment.

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, Project layout, Customize the wrangler.jsonc file:.

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