-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add feature flag for posthog support
We want to run posthog only on prod environment.
- Loading branch information
1 parent
2edfdf9
commit 3e20249
Showing
6 changed files
with
11 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
import { EnvVariable } from "../enums" | ||
import { getEnvVariable } from "../utils/getEnvVariable" | ||
import { getEnvVariable, supportedChainId } from "../utils/getEnvVariable" | ||
|
||
export const TBTC_V2 = | ||
getEnvVariable(EnvVariable.FEATURE_FLAG_TBTC_V2) === "true" | ||
export const MULTI_APP_STAKING = | ||
getEnvVariable(EnvVariable.FEATURE_FLAG_MULTI_APP_STAKING) === "true" | ||
export const POSTHOG = | ||
getEnvVariable(EnvVariable.FEATURE_FLAG_POSTHOG) === "true" && | ||
supportedChainId === "1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters