Skip to content

chore: MAINT-215 Reconcile dead API/CDN/assets URL env vars#130

Merged
MP2EZ merged 2 commits into
developmentfrom
chore/MAINT-215-reconcile-dead-url-env-vars
Jun 5, 2026
Merged

chore: MAINT-215 Reconcile dead API/CDN/assets URL env vars#130
MP2EZ merged 2 commits into
developmentfrom
chore/MAINT-215-reconcile-dead-url-env-vars

Conversation

@MP2EZ
Copy link
Copy Markdown
Owner

@MP2EZ MP2EZ commented Jun 5, 2026

Closes MAINT-215

Removes three env vars (EXPO_PUBLIC_API_URL / EXPO_PUBLIC_CDN_URL / EXPO_PUBLIC_STATIC_ASSETS_URL) that were validated by env.ts but read by no code. They were also wrong-domain (being.app vs the live being.fyi) and pointed at a tier that was never built β€” NetworkSecurityService/certificate-pinning.ts carry placeholder cert pins for api.being.fyi, and the real backend is Supabase-direct.

Path (a) β€” Remove (confirmed with founder; no near-term plan to stand up a custom API/CDN tier). No networking behavior change: the live API base stays NetworkSecurityService's hardcoded api.being.fyi constant, now the single source of truth. The protected core/services/security/ path is untouched, so no compliance/security review was triggered.

Changes:

  • env.ts β€” drop the three keys from schema + readRawEnv (the Env type follows)
  • env.test.ts / env.mock.js β€” drop the three fixture entries
  • eas.json β€” drop the dead EXPO_PUBLIC_API_URL: "http://localhost:3000" preview injection (invalid http, would fail the httpsUrl schema)
  • .config/.env.{production,development} (out-of-band, gitignored) β€” drop the three vars

Zero-consumer confirmation (AC): grep of app/src, app/__tests__, and eas.json returns zero references post-change. Verified: typecheck clean, env suites (30) green, precommit (377 unit) green.

πŸ€– Generated with Claude Code

MP2EZ and others added 2 commits June 3, 2026 20:54
EXPO_PUBLIC_API_URL / _CDN_URL / _STATIC_ASSETS_URL were validated by
env.ts but read by no code β€” the only references were the schema, the
raw-env parse, and two test fixtures. They were also wrong-domain
(being.app vs the live being.fyi) and pointed at a tier that was never
built (placeholder cert pins in NetworkSecurityService; real backend is
Supabase-direct). eas.json's preview profile also injected an invalid
http://localhost:3000 value for the var.

Path (a) β€” Remove. No networking behavior change: the live API base
stays NetworkSecurityService's hardcoded api.being.fyi constant, now the
single source of truth. NetworkSecurityService (protected path) untouched.

- env.ts: drop the three keys from schema + readRawEnv (Env type follows)
- env.test.ts / env.mock.js: drop the three fixture entries
- eas.json: drop the dead EXPO_PUBLIC_API_URL preview injection
- .config/.env.{production,development} (out-of-band): drop the three vars

Verified: typecheck clean, env suites (30) green, precommit (377 unit) green.

πŸ€– Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@MP2EZ MP2EZ merged commit 19ece45 into development Jun 5, 2026
22 checks passed
@MP2EZ MP2EZ deleted the chore/MAINT-215-reconcile-dead-url-env-vars branch June 5, 2026 03:40
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.

1 participant