Skip to main content
Dotset CLI API Documentation / tollgate / resolveServerEnv

Function: resolveServerEnv()

function resolveServerEnv(env): Record<string, string>;
Defined in: src/tollgate/policy/parser.ts:167 Resolves environment variables in server environment configuration. Expands ${VAR} patterns using the current process environment.

Parameters

env

Environment variable mapping with possible placeholders Record<string, string> | undefined

Returns

Record<string, string> Resolved environment variables

Example

resolveServerEnv({ DATABASE_URL: '${DATABASE_URL}' })
// Returns: { DATABASE_URL: 'postgres://...' }