Skip to content

fix(ios): align AppConfig with staging and production custom domains#327

Merged
cola500 merged 2 commits into
stagingfrom
feature/ios-appconfig-urls
May 7, 2026
Merged

fix(ios): align AppConfig with staging and production custom domains#327
cola500 merged 2 commits into
stagingfrom
feature/ios-appconfig-urls

Conversation

@cola500
Copy link
Copy Markdown
Owner

@cola500 cola500 commented May 7, 2026

Summary

iOS-app pekade på en död staging-URL (equinet-git-staging-cola500.vercel.app → 404) och fel prod-URL (equinet-app.vercel.app istället för equinet.johanlindengard.com). Production-läget använde dessutom staging-Supabase via fall-through. Denna PR separerar .staging och .production cases för baseURL, supabaseURL och supabaseAnonKey.

Changes

  • AppConfig.staging.baseURLhttps://equinet-staging.johanlindengard.com
  • AppConfig.production.baseURLhttps://equinet.johanlindengard.com
  • AppConfig.production.supabaseURLxybyzflfxnqqyxnvjklv.supabase.co (separat prod-projekt)
  • AppConfig.production.supabaseAnonKey → prod anon key (hämtad från Vercel Production env)
  • Refactor: static var X: Tstatic func X(for env: AppEnvironment) -> T + computed property bibehåller call-site-API

Tests

12 nya AppConfigTests:

  • Distinct base URLs per env
  • Distinct Supabase project refs per env
  • Distinct anon keys staging vs prod
  • JWT-format-validering
  • Backwards-compat: .baseURL resolverar till .baseURL(for: .current)
Test Suite 'AppConfigTests' passed
Executed 12 tests, with 0 failures (0 unexpected) in 0.008s

Out of scope (kvar i backlog)

  • Vercel SSO-bypass för iOS staging — staging-domänen är fortfarande SSO-skyddad
  • Native DemoLoginButton — Demo-login finns bara i webben
  • Bundle ID + Apple Developer Program-strategi för iOS-prod-publik

Se docs/operations/ios-demo-parity-audit.md för full audit och fortsatta slices.

Test plan

  • xcodebuild test -only-testing:EquinetTests/AppConfigTests — 12/12 gröna
  • Manuell verifiering: bygg iOS i -STAGING-läge → bekräfta nätverkstrafik mot equinet-staging.johanlindengard.com (förväntat: SSO 401 tills bypass är på plats)
  • Manuell verifiering: bygg Release-konfiguration → bekräfta att appen pekar på prod custom domain + prod Supabase

🤖 Generated with Claude Code

cola500 and others added 2 commits May 7, 2026 15:46
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@cola500 cola500 merged commit 6cb8674 into staging May 7, 2026
2 checks passed
@cola500 cola500 deleted the feature/ios-appconfig-urls branch May 7, 2026 14:43
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