mirror of
https://github.com/storytold/figcraft.git
synced 2026-11-10 12:31:42 +00:00
fix(web): allow up to Cloudflare 25 MiB cap in package.sh (#2155)
This commit is contained in:
1 parent
3839fe4a0c
commit
79c363466a
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user