> This page is for SDK, version Legacy.
> For other versions, use one of these documentation indexes:
> - Current (default): https://buildwithfern.com/learn/sdks/current/llms.txt
> - Legacy: https://buildwithfern.com/learn/sdks/legacy/llms.txt

> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://buildwithfern.com/learn/llms.txt.

## 5.20.2

**`(fix):`** When a client is constructed with both an `environment` and server URL
variables (e.g. `region`), the generated client now renders the selected
environment's URL template instead of always using the default (first)
environment's template. For example, `Client(environment=Environment.STAGING,
region="ie1")` now resolves to the Staging template
(`https://api.stage.ie1.example.com`) rather than the Production one.
An explicitly provided `base_url` is no longer overridden by URL variables.