A robust, type-safe configuration management system for the Sophra data synchronization platform
Settings
class provides methods for managing the configuration:
getInstance()
: Returns the singleton instance of the Settings class.load(configPath?: string)
: Loads configuration from default values, file (if provided), and environment variables.getConfig()
: Returns the current configuration object.validate()
: Performs validation checks on the loaded configuration.Config
interface defines the structure of the configuration object, ensuring type safety throughout the application.
Search Service Integration
Analytics Engine Configuration
Configuration Loading Errors
Validation Errors
validate
method returns an array of error messages: