Skip to main content

readEnv

@retinue/monorepo


@retinue/monorepo / backend/src / readEnv

Function: readEnv()

readEnv(env, name, warn?): string | undefined

Defined in: backend/src/core/env.ts:34

RETINUE_X, falling back to 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