Function: envSource()
function envSource(prefix, get): ConfigSource;
Defined in: packages/overcast-core/src/config-schema.ts:274
Values from environment variables under one prefix, e.g. OVERCAST_ for a
CLI's single global namespace or BASE_ for one chain of a multi-chain
backend. Pass "" for unprefixed names.
get is injected rather than reading process.env here: this package is
browser-safe, and a host may be reading through a config service (Nest) or a
parsed .env rather than the real environment.
Parameters
| Parameter | Type |
|---|---|
prefix | string |
get | (key) => string | undefined |