Skip to main content

# setAppConfig()

    function setAppConfig(config: AppConfig): void;

Sets the entire application configuration. Replaces the current configuration with the provided config object.

## Parameters​

### config​

`AppConfig`

The complete application configuration

## Returns​

`void`

## Example​

    setAppConfig({
      appId: 'my-app',
      activeEnv: 'production',
      serviceEndpoints: {
        api: 'https://api.example.com',
        idp: 'https://auth.example.com'
      },
      env: {...}
    });