Mark Pitt
claude-skills
  1. claude-skills
  2. Developer environment
  3. cloudflare-workers-static-site
  4. templates/wrangler.assets-only.jsonc

A file in cloudflare-workers-static-site

templates/wrangler.assets-only.jsonc

JSON 14 lines 549 B
wrangler.assets-only.jsoncJSON, shown as text and never run
{
  "$schema": "./node_modules/wrangler/config-schema.json",
  // Becomes <name>.<account-subdomain>.workers.dev. Lower case and hyphens only.
  "name": "<worker-name>",
  "compatibility_date": "<YYYY-MM-DD>",
  // No "main": there is no Worker script, so every request is a free static asset.
  "assets": {
    // The build output folder, relative to this file.
    "directory": "./dist",
    // "404-page" for multi-page sites, "single-page-application" for SPAs.
    "not_found_handling": "404-page"
  },
  "observability": { "enabled": true }
}