* Local config overrides set via /config Gates tab (ant-only). Checked after * env-var overrides — env wins so eval harnesses remain deterministic. Unlike * getEnvOverrides this is not memoized: the user can change overrides at * runtime, and getGlobalConfig() is already memory-cached (pointer-ch
()
| 209 | * until the next saveGlobalConfig() invalidates it. |
| 210 | */ |
| 211 | function getConfigOverrides(): Record<string, unknown> | undefined { |
| 212 | if (process.env.USER_TYPE !== 'ant') return undefined |
| 213 | try { |
| 214 | return getGlobalConfig().growthBookOverrides |
| 215 | } catch { |
| 216 | // getGlobalConfig() throws before configReadingAllowed is set (early |
| 217 | // main.tsx startup path). Same degrade as the disk-cache fallback below. |
| 218 | return undefined |
| 219 | } |
| 220 | } |
| 221 | |
| 222 | /** |
| 223 | * Enumerate all known GrowthBook features and their current resolved values |
no test coverage detected