From 6c84937ad5a3128d5f95d9cabe9da23e53fda9eb Mon Sep 17 00:00:00 2001 From: nsheff Date: Tue, 16 Jun 2026 15:14:25 -0400 Subject: [PATCH] Fix bedhost-ui worker: name assets binding ASSETS worker.ts falls back to env.ASSETS.fetch() for non-crawler requests, but the assets block had no binding name, so env.ASSETS was undefined and every deep route 500'd (root worked because index.html is served directly). Adding "binding": "ASSETS" restores SPA routing. --- ui/wrangler.jsonc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/wrangler.jsonc b/ui/wrangler.jsonc index b8827e94..27c9aa8c 100644 --- a/ui/wrangler.jsonc +++ b/ui/wrangler.jsonc @@ -4,6 +4,7 @@ "compatibility_date": "2026-02-20", "assets": { "directory": "./dist", - "not_found_handling": "single-page-application" + "not_found_handling": "single-page-application", + "binding": "ASSETS" } } \ No newline at end of file