Reads an environment variable by key. Does not throw if the value is missing.
One of the EnvVariable enum values.
The value of the env var, or undefined if unset.
undefined
import { getEnvValue, EnvVariable } from "naystack/env";const region = getEnvValue(EnvVariable.AWS_REGION); // "us-east-1" or undefined Copy
import { getEnvValue, EnvVariable } from "naystack/env";const region = getEnvValue(EnvVariable.AWS_REGION); // "us-east-1" or undefined
Reads an environment variable by key. Does not throw if the value is missing.