Skip to main content

Function: loadDotEnv()

loadDotEnv(): void

Defined in: cli.ts:180

Load the appropriate .env file. If an environment is specified (e.g. -e Production) and a .env.Production file exists, load only that file so environment-specific values are authoritative and nothing from a generic .env can bleed through. Fall back to .env when no environment-specific file is found or when no environment is specified.

Returns

void