Compare commits

...
2 changed files with 12 additions and 0 deletions

No files matched your search

@@ -166,6 +166,12 @@ export default abstract class EasCommand extends Command {
// eslint-disable-next-line async-protect/async-suffix
async run(): Promise<any> {
// EAS CLI should never use @expo/env to load environment variables, it has its
// own mechanism for doing so. The only exception is when publishing an update,
// where we currently depend on the local environment.
process.env.EXPO_NO_DOTENV = '0';
Log.debug('Set EXPO_NO_DOTENV=1 to disable @expo/env');
this.analyticsInternal = await createAnalyticsAsync();
this.sessionManagerInternal = new SessionManager(this.analytics);
@@ -151,6 +151,12 @@ export default class UpdatePublish extends EasCommand {
};
async runAsync(): Promise<void> {
// No other EAS CLI commands use the local env, but the publish command does
// because it runs on the user's machine! In the future, we may make this
// configurable through a flag, such as `eas update --env local` (vs remote)
process.env.EXPO_NO_DOTENV = '0';
Log.debug('Set EXPO_NO_DOTENV=0 to enable @expo/env');
const { flags: rawFlags } = await this.parse(UpdatePublish);
const paginatedQueryOptions = getPaginatedQueryOptions(rawFlags);
const {