```ruby
result[:endpoint_url] = $SL_API_BASE_URL || API_PUBLIC_ENDPOINT
```