Fake Mirrors
    Preparing search index...

    Class EnvConfig

    Env-based config implementation.

    Provides loading and validating configuration data from environment variables.

    Implements

    • Retrieves and validates a configuration object.

      The configuration data is loaded from the implementation's source and validated against a pre-registered JSON Schema. The result is cached to avoid redundant processing.

      Type Parameters

      • T extends ConfigData

        The expected type of the configuration object.

      Parameters

      • schemaName: string

        The name of the schema registered in the validator.

      Returns T

      The validated and typed configuration object.

      LifecycleError If loading or validation of the configuration fails.

    • Clears all cached values.

      Returns void

    • Registers the config as a singleton in the DI container.

      Parameters

      • container: DIContainer

        The DI container to register in.

      Returns void