Hyperlinkv0.8.0-beta.28

DynamicConfig

DynamicConfig.SwappableRegistryconstsrc/DynamicConfig.ts:237

The process-wide allowlist of declared-swappable env keys → their Config, held the way Effect holds its own registries (Metric.MetricRegistry): a Context.Reference whose cached default is the global — declare swappable anywhere, no wiring — while a test or isolated program can substitute its own allowlist with Effect.provideService(SwappableRegistry, new Map()).

contextswappable
export const SwappableRegistry = Context.Reference<
  Map<string, Config.Config<unknown>>
>(SwappableRegistryKey, { defaultValue: () => new Map() });
Referenced by 1 symbols