diff --git a/.env.e2e b/.env.e2e new file mode 100644 index 000000000..f7ad26b05 --- /dev/null +++ b/.env.e2e @@ -0,0 +1 @@ +EXPO_PUBLIC_ENV=e2e diff --git a/.github/workflows/nightly-e2e.yml b/.github/workflows/nightly-e2e.yml index 37f5a88f1..c8921f100 100644 --- a/.github/workflows/nightly-e2e.yml +++ b/.github/workflows/nightly-e2e.yml @@ -42,7 +42,9 @@ jobs: run: | mkdir -p artifacts/ios echo "Installing dependencies" > artifacts/ios/phase.txt - cp .env.example .env.development + cp .env.example .env + # Expo loads standard env filenames, so map the E2E overrides to development. + cp .env.e2e .env.development cp google-services.json.example google-services.json - name: 🔧 Set up Expo project @@ -167,7 +169,9 @@ jobs: run: | mkdir -p artifacts/android echo "Installing dependencies" > artifacts/android/phase.txt - cp .env.example .env.development + cp .env.example .env + # Expo loads standard env filenames, so map the E2E overrides to development. + cp .env.e2e .env.development cp google-services.json.example google-services.json - name: 🔧 Set up Expo project diff --git a/.gitignore b/.gitignore index a9d64c266..642609a30 100644 --- a/.gitignore +++ b/.gitignore @@ -101,6 +101,7 @@ stats.json # environment variables .env .env.* +!/.env.e2e # Firebase (Android) Google services google-services.json