Skip to content

refactor: simplify env config to a local .env - #57

Merged
MounirDhahri merged 1 commit into
mainfrom
claude/simplify-env
Jul 13, 2026
Merged

refactor: simplify env config to a local .env#57
MounirDhahri merged 1 commit into
mainfrom
claude/simplify-env

Conversation

@MounirDhahri

Copy link
Copy Markdown
Member

Description

The app only reads EXPO_PUBLIC_* vars (Unleash URL/key, Sentry DSN), which Expo inlines from a local .env at build time. The old prepare-env-vars flow (S3 → .env.shared → merge into .env.dev) is a leftover from react-native-config and wrote a file Expo never loads — so it was effectively dead.

  • Add tracked .env.example with the EXPO_PUBLIC_* keys (all optional; the app boots fine blank — Unleash and Sentry are gated off when unset).
  • yarn setup:oss and yarn setup:artsy now seed .env from .env.example if missing.
  • Remove scripts/prepare-env-vars; setup:artsy keeps only the S3 font download.
  • Rewrite docs/environment_variables_configuration.md for the .env approach and clarify that secrets live in keys.*.json (react-native-keys), not .env.

No S3 env object needed anymore.

🤖 Generated with Claude Code


Generated by Claude Code

….env.dev)

The app reads only EXPO_PUBLIC_* vars (Unleash URL/key, Sentry DSN), which Expo
inlines from a local .env at build time — the old prepare-env-vars S3 →
.env.shared → .env.dev merge (a react-native-config leftover) wrote a file
Expo never loads.

- Add tracked .env.example with the EXPO_PUBLIC_* keys (all optional; app boots
  fine blank — Unleash/Sentry are gated off when unset).
- setup:oss and setup:artsy now seed .env from .env.example if missing.
- Remove scripts/prepare-env-vars; setup:artsy keeps the S3 font download only.
- Rewrite docs/environment_variables_configuration.md for the .env approach and
  clarify secrets live in keys.*.json (react-native-keys), not .env.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KPWjhmaeq8DnsiiFD9Eg7A
@MounirDhahri
MounirDhahri merged commit 7d1f904 into main Jul 13, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants