From 80ab31520d6e4ad289c34f16580d09c86b25e8cc Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 13 Nov 2026 19:34:13 +0000 Subject: [PATCH] fix(web): don't upload source maps with the Worker A real `wrangler deploy` uploads the bundle's source maps unless the config says otherwise; apps/web's are about 85 MB, above Cloudflare's 60 MiB limit (error 10021). A dry run does not check it. Documented in "Shrink the Worker" and the troubleshooting table. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01CnAiFZHQw1SaeJbt11brzs --- apps/web/wrangler.jsonc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/apps/web/wrangler.jsonc b/apps/web/wrangler.jsonc index 5eef154ca..2eccef531 100644 --- a/apps/web/wrangler.jsonc +++ b/apps/web/wrangler.jsonc @@ -13,19 +13,21 @@ // Server code that ships functions to the browser as source (the theme and // scroll scripts) breaks under esbuild's name-keeping helper once minified. "keep_names": false, + // The bundle's source maps are about 85 MB, above Cloudflare's 60 MiB limit. + "upload_source_maps": false, // Prerendered pages are `page/index.html`: serve them at `/page`, as Node // does, instead of redirecting to `/page/`. "assets": { "html_handling": "drop-trailing-slash" }, "durable_objects": { "bindings": [ // The realtime hub that owns every WebSocket. The binding name is fixed. - { "name": "VITNODE_REALTIME", "class_name": "VitNodeRealtimeHub" } - ] + { "name": "VITNODE_REALTIME", "class_name": "VitNodeRealtimeHub" }, + ], }, // SQLite-backed, so the hub keeps its rooms while it hibernates. "migrations": [{ "tag": "v1", "new_sqlite_classes": ["VitNodeRealtimeHub"] }], "vars": { - "VITNODE_INSTALLATION_ID": "default" + "VITNODE_INSTALLATION_ID": "default", }, - "observability": { "enabled": true } + "observability": { "enabled": true }, }