readEnv
@forge/monorepo / backend/src / readEnv
Function: readEnv()
readEnv(
env,name,warn?):string|undefined
Defined in: backend/src/core/env.ts:30
FORGE_X, falling back to RETINUE_X or AGENTKIT_X.
name is given without the prefix — read(env, "DATABASE_URL") — so a caller cannot accidentally ask for
the legacy name directly and skip the warning.
Parameters
env
Readonly<Record<string, string | undefined>>
name
string
warn?
(message) => void
Returns
string | undefined