setAppConfigValue()
function setAppConfigValue<Type>(key: string, value: Type): AppConfig;
Sets a value in the application configuration using dot notation. Creates nested objects if they don't exist.
Type Parameters
Type
Type
Type of the value being set
Parameters
key
string
Dot-notation path to set (e.g., 'serviceEndpoints.api')
value
Type
Value to set at the specified path
Returns
The updated configuration object
Example
setAppConfigValue('serviceEndpoints.api', 'https://new-api.com');
setAppConfigValue('customSetting.enabled', true);