[Statsig] Mark Testflight as staging tier (#3470)
parent
427f3a848d
commit
310d865440
|
@ -9,6 +9,7 @@ import {
|
||||||
} from 'statsig-react-native-expo'
|
} from 'statsig-react-native-expo'
|
||||||
|
|
||||||
import {logger} from '#/logger'
|
import {logger} from '#/logger'
|
||||||
|
import {IS_TESTFLIGHT} from 'lib/app-info'
|
||||||
import {useSession} from '../../state/session'
|
import {useSession} from '../../state/session'
|
||||||
import {LogEvents} from './events'
|
import {LogEvents} from './events'
|
||||||
import {Gate} from './gates'
|
import {Gate} from './gates'
|
||||||
|
@ -17,7 +18,12 @@ export type {LogEvents}
|
||||||
|
|
||||||
const statsigOptions = {
|
const statsigOptions = {
|
||||||
environment: {
|
environment: {
|
||||||
tier: process.env.NODE_ENV === 'development' ? 'development' : 'production',
|
tier:
|
||||||
|
process.env.NODE_ENV === 'development'
|
||||||
|
? 'development'
|
||||||
|
: IS_TESTFLIGHT
|
||||||
|
? 'staging'
|
||||||
|
: 'production',
|
||||||
},
|
},
|
||||||
// Don't block on waiting for network. The fetched config will kick in on next load.
|
// Don't block on waiting for network. The fetched config will kick in on next load.
|
||||||
// This ensures the UI is always consistent and doesn't update mid-session.
|
// This ensures the UI is always consistent and doesn't update mid-session.
|
||||||
|
|
Loading…
Reference in New Issue