From 02205db1cd6634729359f9a4af465dcb811efa62 Mon Sep 17 00:00:00 2001 From: Szymon Dziedzic Date: Fri, 22 Nov 2024 11:20:07 +0100 Subject: [PATCH] fix log --- packages/eas-cli/src/build/evaluateConfigWithEnvVarsAsync.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/eas-cli/src/build/evaluateConfigWithEnvVarsAsync.ts b/packages/eas-cli/src/build/evaluateConfigWithEnvVarsAsync.ts index 2e5cc8d449..c8ea2d677a 100644 --- a/packages/eas-cli/src/build/evaluateConfigWithEnvVarsAsync.ts +++ b/packages/eas-cli/src/build/evaluateConfigWithEnvVarsAsync.ts @@ -55,10 +55,9 @@ async function resolveEnvVarsAsync({ }): Promise { const environment = buildProfile.environment?.toUpperCase() ?? - process.env.EAS_CURRENT_ENVIRONMENT ?? resolveSuggestedEnvironmentForBuildProfileConfiguration(buildProfile); - if (!environment || !isEnvironment(environment)) { + if (!isEnvironment(environment)) { Log.log( `Loaded "env" configuration for the "${buildProfileName}" profile: ${ buildProfile.env && Object.keys(buildProfile.env).length > 0 @@ -137,7 +136,7 @@ function resolveSuggestedEnvironmentForBuildProfileConfiguration( buildProfile: BuildProfile ): EnvironmentVariableEnvironment { const setEnvironmentMessage = - 'Set the environment using the "environment" field in the build profile configuration if you want to use a specific environment.'; + 'Set the "environment" field in the build profile if you want to specify the environment manually.'; if (buildProfile.distribution === 'store') { Log.log( `We detected that you are building for the "store" distribution. Resolving the environment for environment variables used during the build to "production". ${setEnvironmentMessage}`