pub async fn resolve_target_for_sync( target: Option<String>, api_key: Option<String>, source_url: &str, ) -> Result<String>
Resolve the effective target URL for sync, honoring saved SerenDB state when using API keys.