diff options
author | dan <dan.abramov@gmail.com> | 2024-04-10 20:08:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-10 20:08:46 +0100 |
commit | 310d86544028e0b168be3f0c55259bcc852aaa8e (patch) | |
tree | 01c246ee5046a16cf7da80013560a1c1b5c16bec /src | |
parent | 427f3a848d3bdc2e9c4b6b7cb2b8699511339ee2 (diff) | |
download | voidsky-310d86544028e0b168be3f0c55259bcc852aaa8e.tar.zst |
[Statsig] Mark Testflight as staging tier (#3470)
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/statsig/statsig.tsx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/statsig/statsig.tsx b/src/lib/statsig/statsig.tsx index 18b58d16d..159438647 100644 --- a/src/lib/statsig/statsig.tsx +++ b/src/lib/statsig/statsig.tsx @@ -9,6 +9,7 @@ import { } from 'statsig-react-native-expo' import {logger} from '#/logger' +import {IS_TESTFLIGHT} from 'lib/app-info' import {useSession} from '../../state/session' import {LogEvents} from './events' import {Gate} from './gates' @@ -17,7 +18,12 @@ export type {LogEvents} const statsigOptions = { 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. // This ensures the UI is always consistent and doesn't update mid-session. |