From 310d86544028e0b168be3f0c55259bcc852aaa8e Mon Sep 17 00:00:00 2001 From: dan Date: Wed, 10 Apr 2024 20:08:46 +0100 Subject: [Statsig] Mark Testflight as staging tier (#3470) --- src/lib/statsig/statsig.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src') 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. -- cgit 1.4.1