fix: use boolean run_worker_first for wrangler 3.x compat

The array form of run_worker_first requires wrangler 4. Cloudflare
Build's local install resolves wrangler 3.x from our pinned devDep,
so switch to run_worker_first = true. The worker already handles
routing (/api/* -> Hono, else -> ASSETS), so semantics are unchanged.

https://claude.ai/code/session_01TPBqgcSJMppgrpiq7fLywL
This commit is contained in:
Claude 2026-05-04 01:29:29 +00:00
parent 11167e48f3
commit 11a81975ff
No known key found for this signature in database

View File

@ -7,7 +7,7 @@ compatibility_flags = ["nodejs_compat"]
directory = "./dist"
binding = "ASSETS"
not_found_handling = "single-page-application"
run_worker_first = ["/api/*"]
run_worker_first = true
[[d1_databases]]
binding = "DB"