SPECTRUM_<CHANNEL>_<KEY> convention so the prefix can’t drift or be
mistyped per field. Both segments are joined verbatim (callers pass them
already upper-snake-cased), e.g. envFor("TELEGRAM", "BOT_TOKEN") →
"SPECTRUM_TELEGRAM_BOT_TOKEN".
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
Build a Spectrum config env-var name from a channel and a key, centralizing the convention so the prefix can’t drift or be mistyped per field.
SPECTRUM_<CHANNEL>_<KEY> convention so the prefix can’t drift or be
mistyped per field. Both segments are joined verbatim (callers pass them
already upper-snake-cased), e.g. envFor("TELEGRAM", "BOT_TOKEN") →
"SPECTRUM_TELEGRAM_BOT_TOKEN".
const envFor: (channel: string, key: string) => string
Was this page helpful?