fix(web): allow up to Cloudflare 25 MiB cap in package.sh (#2155)

This commit is contained in:
Dylan M. Taylor authored and GitHub committed 2026-11-09 06:59:31 -05:00
1 parent 3839fe4a0c
commit 79c363466a
1 file changed
+1 -1
+1 -1
View File
@@ -27,7 +27,7 @@ fi
# Size gate: Cloudflare Pages/Workers reject any single file over 25 MiB, and other
# hosts and CDNs have similar caps. Fail well before that so a regression shows up here, not at
# upload time. Override with FIGCRAFT_WASM_MAX_BYTES only to investigate.
MAX_WASM_BYTES="${FIGCRAFT_WASM_MAX_BYTES:-25165824}" # 24 MiB
MAX_WASM_BYTES="${FIGCRAFT_WASM_MAX_BYTES:-26214400}" # 25 MiB (Cloudflare per-file cap)
WASM_COUNT=0
for wasm in "$SITE"/*.wasm; do
[[ -f "$wasm" ]] || continue