Skip to content

Commit

Permalink
fix log
Browse files Browse the repository at this point in the history
  • Loading branch information
szdziedzic committed Nov 22, 2024
1 parent 936efe9 commit 02205db
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/eas-cli/src/build/evaluateConfigWithEnvVarsAsync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,9 @@ async function resolveEnvVarsAsync({
}): Promise<Env> {
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
Expand Down Expand Up @@ -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}`
Expand Down

0 comments on commit 02205db

Please sign in to comment.