{
  "slug": "workers-assets-supports-assets-base-path-2f18bb904592",
  "title": "Workers Assets supports `assets.base_path`",
  "tools": [
    "wrangler"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-10-06T18:39:25.000Z",
  "announced_at": "2026-10-06T18:39:25.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "To serve the configured assets directory under a public prefix, set `assets.base_path` to that root-relative path in Wrangler configuration. For authored `200` asset rewrites, include the prefix in both the source and destination paths.",
    "examples": [
      "{\"assets\":{\"directory\":\"./public\",\"base_path\":\"/docs\"}}"
    ],
    "gotchas": [
      "Version: 4.148.0",
      "assets.directory: Folder of static assets to serve.",
      "assets.base_path: Public path prefix; the 4.148.0 release example uses `/docs`.",
      "URL-shaped values are rejected.",
      "Omitting the option preserves existing root-path behavior.",
      "Authored `_headers` and `_redirects` rules continue to match full public paths.",
      "Requests passed to a user Worker, request-facing headers, and redirects retain the public path.",
      "Docs conflict: The current Wrangler configuration docs describe `assets.directory` but do not list `assets.base_path`; they may reflect a newer or different documentation state than Wrangler 4.148.0. No conflicting behavior was used."
    ]
  },
  "why_it_matters": "Serve a Workers Assets directory under a public URL prefix while keeping its on-disk layout unchanged.",
  "sources": [
    "https://github.com/cloudflare/workers-sdk/releases/tag/wrangler%404.148.0",
    "https://github.com/cloudflare/workers-sdk/releases",
    "https://developers.cloudflare.com/workers/wrangler/configuration/"
  ],
  "rank": 0.98036,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v1+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "gap-20261007",
    "verdict_id": "gap-20261007:gap-20261007-17b55dab6c3454b5-1:gate",
    "evidence_hash": "1d805d39b3395a942d433cdff3d00332332c5f2d7bce8836d0e720ea78805c54"
  },
  "review": {
    "draft_hash": "084da1097505b229e4a78ee1a0008a7656069e51d5aba80447e59f9570dbfcfe",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "gap-20261007:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.98 >= 0.9; 2 needed) and Jev gave 0.80 (>= 0.6 needed)."
  }
}
