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:
parent
11167e48f3
commit
11a81975ff
@ -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"
|
||||
|
||||
Reference in New Issue
Block a user