|
115 | 115 | ("RECAPTHCA_SITE_KEY", str), |
116 | 116 | # Whether we're in test |
117 | 117 | ("IN_TEST", bool, "0"), |
118 | | - # Experimentation (feature flags via Statsig) |
| 118 | + # Experimentation (feature flags via GrowthBook) |
119 | 119 | ("EXPERIMENTATION_ENABLED", bool, "0"), |
120 | 120 | # When enabled, all feature gates return True (useful for development/testing) |
121 | 121 | ("EXPERIMENTATION_PASS_ALL_GATES", bool, "0"), |
122 | | - # Statsig SDK configuration |
123 | | - ("STATSIG_SERVER_SECRET_KEY", str, ""), |
124 | | - ("STATSIG_ENVIRONMENT", str, "development"), |
| 122 | + # GrowthBook SDK configuration |
| 123 | + ("GROWTHBOOK_API_HOST", str, "https://cdn.growthbook.io"), |
| 124 | + ("GROWTHBOOK_CLIENT_KEY", str, ""), |
125 | 125 | # Moderation auto-approval deadline in seconds (0 to disable auto-approval) |
126 | 126 | ("MODERATION_AUTO_APPROVE_DEADLINE_SECONDS", int), |
127 | 127 | # User ID of the bot user for automated moderation actions |
@@ -171,8 +171,8 @@ def check_config(cfg: dict[str, Any]) -> None: |
171 | 171 | raise Exception("MyPostcard API credentials not configured but postal verification enabled") |
172 | 172 |
|
173 | 173 | if cfg["EXPERIMENTATION_ENABLED"]: |
174 | | - if not cfg["STATSIG_SERVER_SECRET_KEY"]: |
175 | | - raise Exception("No Statsig server secret key but experimentation enabled") |
| 174 | + if not cfg["GROWTHBOOK_CLIENT_KEY"]: |
| 175 | + raise Exception("No GrowthBook client key but experimentation enabled") |
176 | 176 |
|
177 | 177 |
|
178 | 178 | def make_config() -> dict[str, Any]: |
|
0 commit comments