Function resolveEnvVar

  • Resolve a value that may come from an explicit argument, one of several environment variables (checked in order), or a final default.

    Used by inference transports to plumb credentials and URLs (e.g. LIVEKIT_REMOTE_EOT_URL, LIVEKIT_INFERENCE_API_KEY).

    Parameters

    • value: undefined | string
    • envVars: readonly string[]
    • defaultValue: string = ''

    Returns string