Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion eas.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"image": "latest"
},
"env": {
"APP_ENV": "development",
"APP_ENV": "internal",
"EXPO_NO_DOTENV": "1",
"FLIPPER_DISABLE": "1"
}
Expand Down
2 changes: 1 addition & 1 deletion env.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const SCHEME = 'ResgridUnit'; // app scheme
*/

const withEnvSuffix = (name) => {
return APP_ENV === 'production' ? name : `${name}.${APP_ENV}`;
return APP_ENV === 'production' || APP_ENV === 'internal' ? name : `${name}.${APP_ENV}`;
};

/**
Expand Down
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,26 @@
"xcode": "xed -b ios",
"doctor": "npx expo-doctor@latest",
"start:staging": "cross-env APP_ENV=staging yarn run start",
"start:internal": "cross-env APP_ENV=internal yarn run start",
"prebuild:staging": "cross-env APP_ENV=staging yarn run prebuild",
"prebuild:development": "cross-env APP_ENV=development yarn run prebuild",
"android:staging": "cross-env APP_ENV=staging yarn run android",
"ios:staging": "cross-env APP_ENV=staging yarn run ios",
"start:production": "cross-env APP_ENV=production yarn run start",
"prebuild:production": "cross-env APP_ENV=production yarn run prebuild",
"prebuild:internal": "cross-env APP_ENV=internal yarn run prebuild",
"android:production": "cross-env APP_ENV=production yarn run android",
"ios:production": "cross-env APP_ENV=production yarn run ios",
"android:internal": "cross-env APP_ENV=internal yarn run android",
"ios:internal": "cross-env APP_ENV=internal yarn run ios",
"build:development:ios": "cross-env APP_ENV=development EXPO_NO_DOTENV=1 eas build --profile development --platform ios",
"build:development:android": "cross-env APP_ENV=development EXPO_NO_DOTENV=1 eas build --profile development --platform android ",
"build:staging:ios": "cross-env APP_ENV=staging EXPO_NO_DOTENV=1 eas build --profile staging --platform ios",
"build:staging:android": "cross-env APP_ENV=staging EXPO_NO_DOTENV=1 eas build --profile staging --platform android ",
"build:production:ios": "cross-env APP_ENV=production EXPO_NO_DOTENV=1 eas build --profile production --platform ios",
"build:production:android": "cross-env APP_ENV=production EXPO_NO_DOTENV=1 eas build --profile production --platform android ",
"build:internal:ios": "cross-env APP_ENV=internal EXPO_NO_DOTENV=1 eas build --profile internal --platform ios",
"build:internal:android": "cross-env APP_ENV=internal EXPO_NO_DOTENV=1 eas build --profile internal --platform android",
"app-release": "cross-env SKIP_BRANCH_PROTECTION=true np --no-publish --no-cleanup --no-release-draft",
"version": "yarn run prebuild && git add .",
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
Expand Down
Loading