Bluesky app fork with some witchin' additions 💫

[Statsig] Mark Testflight as staging tier (#3470)

authored by danabra.mov and committed by

GitHub 310d8654 427f3a84

+7 -1
+7 -1
src/lib/statsig/statsig.tsx
··· 9 9 } from 'statsig-react-native-expo' 10 10 11 11 import {logger} from '#/logger' 12 + import {IS_TESTFLIGHT} from 'lib/app-info' 12 13 import {useSession} from '../../state/session' 13 14 import {LogEvents} from './events' 14 15 import {Gate} from './gates' ··· 17 18 18 19 const statsigOptions = { 19 20 environment: { 20 - tier: process.env.NODE_ENV === 'development' ? 'development' : 'production', 21 + tier: 22 + process.env.NODE_ENV === 'development' 23 + ? 'development' 24 + : IS_TESTFLIGHT 25 + ? 'staging' 26 + : 'production', 21 27 }, 22 28 // Don't block on waiting for network. The fetched config will kick in on next load. 23 29 // This ensures the UI is always consistent and doesn't update mid-session.