Configuration
Configuration is consistent across all SDKs.
Required:
url— Base API URL (example:https://api.example.com).sdkKey— SDK API key (sent inx-sdk-key).context.userId— Required user identifier for evaluations and metrics.
Optional:
-
env— Environment name. Default:prod. -
refreshIntervalMs— Polling interval for evaluations. Default:15000. -
metricsIntervalMs— Metrics flush interval. Default:60000. -
disableRefresh— Disable polling. Default:false. -
disableMetrics— Disable metrics. Default:false. -
fetch— Customfetchimplementation.
Для self-host url — адрес вашей установки, например https://flags.example.com,
без суффикса /v1. sdkKey — ключ проекта; ключ активации on-prem сюда не передаётся.
Используйте HTTPS и рабочие defaults. Порядок установки.