Skip to content

[build-tools] Use production mode for app config, prebuild, and Expo Doctor - #4180

Draft
ramonclaudio wants to merge 6 commits into
mainfrom
@ramonclaudio/dvt-119-eas-config-mode-handoff
Draft

[build-tools] Use production mode for app config, prebuild, and Expo Doctor#4180
ramonclaudio wants to merge 6 commits into
mainfrom
@ramonclaudio/dvt-119-eas-config-mode-handoff

Conversation

@ramonclaudio

@ramonclaudio ramonclaudio commented Aug 12, 2026

Copy link
Copy Markdown
Member

Part of DVT-119. Follow-up to expo/expo#48554 and expo/expo#48741. Related to expo/expo#48839, expo/expo#48845, and expo/expo#48882.

Why

EAS Build can use a user-defined NODE_ENV when it reads app config or runs Expo commands. This can make it load a different .env file for the same build.

How

EAS Build now uses production mode when it reads app config or runs prebuild and Expo Doctor.

EAS Build sets NODE_ENV for older Expo versions and the @expo/config fallback. Current Expo tools receive the same mode through EXPO_CONFIG_MODE.

Dependency installs still use the user's original env.

Test Plan

  • Ran all @expo/build-tools tests
  • Ran corepack yarn typecheck
  • Ran corepack yarn build
  • Ran corepack yarn lint
  • Ran corepack yarn fmt:check
  • Ran corepack yarn actionlint
  • Ran the @expo/build-tools prepack check

@linear-code

linear-code Bot commented Aug 12, 2026

Copy link
Copy Markdown

DVT-119

@codecov

codecov Bot commented Aug 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 63.41%. Comparing base (067c0e5) to head (c6fffa5).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4180      +/-   ##
==========================================
+ Coverage   63.32%   63.41%   +0.10%     
==========================================
  Files        1025     1027       +2     
  Lines       46786    46825      +39     
  Branches     9865     9817      -48     
==========================================
+ Hits        29624    29691      +67     
- Misses      15707    17033    +1326     
+ Partials     1455      101    -1354     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ramonclaudio
ramonclaudio force-pushed the @ramonclaudio/dvt-119-eas-config-mode-handoff branch from 0822cb4 to bdc5d2b Compare August 13, 2026 13:48
@ramonclaudio ramonclaudio changed the title [build-tools] Use production mode for Expo commands during EAS Build [build-tools] Use production mode for app config, prebuild, and Expo Doctor Aug 13, 2026
@github-actions

Copy link
Copy Markdown

✅ Thank you for adding the changelog entry!

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