Type representing the runtime environment configuration.

Users can extend the $BaseEnv schema in their application. Any extended schema must have, as it's output, a type that is assignable to this type.

interface Env {
    API_PORT: number;
    API_RESPONSE_DELAY?: number;
    DANGEROUSLY_DISABLE_PBKDF2_ITERATION?: boolean;
    DEBUG?: boolean;
    LOG?: boolean;
    LOGIN_REQUEST_TROTTLER_LIMIT?: number;
    LOGIN_REQUEST_TROTTLER_TTL?: number;
    NODE_ENV: "development" | "production" | "test";
    SECRET_KEY: string;
    THROTTLER_ENABLED: boolean;
    VERBOSE?: boolean;
}

Hierarchy (View Summary)

Properties

API_PORT: number = ...
API_RESPONSE_DELAY?: number = ...
DANGEROUSLY_DISABLE_PBKDF2_ITERATION?: boolean = ...
DEBUG?: boolean = ...
LOG?: boolean = ...

enable log-level logs (default = true in development or production, false in tests)

LOGIN_REQUEST_TROTTLER_LIMIT?: number = ...
LOGIN_REQUEST_TROTTLER_TTL?: number = ...
NODE_ENV: "development" | "production" | "test" = ...
SECRET_KEY: string = ...
THROTTLER_ENABLED: boolean = ...
VERBOSE?: boolean = ...