Proje: Okul B2B App · Hub: Okul B2B App — Incidents
API URL Legacy Build Migration — api.okul.work → api.okul.com.tr
Commit’ler: 9ad2bd6, ee0fcd8
Semptom
Eski build’lerde api.okul.work test URL’i hardcoded kalmıştı. Bu URL’i kullanan eski build’ler production’da hata veriyordu.
Root Cause
Google Play review sırasında test API (api.okul.work) gösterilmişti. Review onayı sonrası Firebase Remote Config ile production URL’e geçiş planlanmıştı ama Remote Config tam aktif edilmemişti. Bu sırada bazı kullanıcılar eski build’leri kullanmaya devam etti.
Çözüm
IS_LEGACY_BUILDflag eklendi:EXPO_PUBLIC_API_URLiçinde'okul.work'varsatrue_layout.tsx’te legacy build tespiti → zorla logout + OTA update tetiklemeConfig.ts’de production’daapi.okul.workURL’leriapi.okul.com.tr’ye yönlendirme- Tüm
eas.jsonprofilleriapi.okul.com.tr’ye güncellendi - Expo Go hâlâ
api.okul.workkullanıyor (test environment için)
Kalıcı Kural
api.okul.work sadece Expo Go geliştirme ortamı için. Production build’larda hiçbir zaman api.okul.work kullanılmamalı.
Related
- api-client-pattern — URL yönetimi
- build-ve-ota-update — legacy build force update