MCPcopy Index your code
hub / github.com/codeaashu/claude-code / getConfigOverrides

Function getConfigOverrides

src/services/analytics/growthbook.ts:211–220  ·  view source on GitHub ↗

* 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

()

Source from the content-addressed store, hash-verified

209 * until the next saveGlobalConfig() invalidates it.
210 */
211function 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

Calls 1

getGlobalConfigFunction · 0.85

Tested by

no test coverage detected