Skip to content

fix: raise deploy per-asset size limit from 500MB to 4GB#3488

Open
yocontra wants to merge 2 commits intoexpo:mainfrom
yocontra:fix/raise-deploy-asset-size-limit
Open

fix: raise deploy per-asset size limit from 500MB to 4GB#3488
yocontra wants to merge 2 commits intoexpo:mainfrom
yocontra:fix/raise-deploy-asset-size-limit

Conversation

@yocontra
Copy link

Summary

  • Raises MAX_UPLOAD_SIZE from 500MB to 4GB in commands/deploy/index.ts
  • Updates the hardcoded error message in worker/assets.ts to reflect the new limit
  • Apps bundling large on-device ML models need to deploy assets exceeding 500MB
  • Apple's App Store supports packages up to 4GB
  • The upload path already uses streaming (fs.createReadStream / Readable.from) — no memory issues
  • The server independently enforces its own limits via 413 responses

Related: expo/expo#43755 (fixes the fs.readFile 2GB Buffer limit in AFCClient.uploadFile())

Test plan

  • Confirmed upload path uses streaming — no buffering issues
  • Updated error message matches new limit
  • No test files reference this constant directly

Apple raised the App Store package limit to 4GB, but eas-cli still
enforces a 2GB client-side limit on project archives. Apps bundling
on-device ML models (LLaMA, Stable Diffusion, etc.) regularly exceed
2GB and hit this limit before reaching any server-side constraint.

The upload path already uses streaming (fs.createReadStream), so there
are no memory issues with larger archives. The server can still enforce
its own limits independently via GCS signed URL constraints.
Apps with large on-device ML models need to deploy assets exceeding
500MB. Apple's App Store now supports packages up to 4GB, and the
upload path already uses streaming (fs.createReadStream / Readable.from),
so there are no memory issues with larger assets. The server enforces
its own limits via 413 responses independently.
@github-actions
Copy link

Subscribed to pull request

File Patterns Mentions
**/* @douglowder
packages/eas-cli/src/worker/** @kitten, @kadikraman
packages/eas-cli/src/commands/deploy/** @kitten, @kadikraman
packages/eas-cli/src/build/** @sjchmiela

Generated by CodeMention

@sjchmiela sjchmiela requested a review from kitten March 10, 2026 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant