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

# Server names

> Configure custom server names in AsyncAPI specifications with `x-fern-server-name` extension. Set up production and staging server labels.

Specify custom names for servers:

```yaml title="asyncapi.yml" {4-5}
servers:
  production:
    host: api.yourcompany.com
    x-fern-server-name: Production
    protocol: wss
  staging:
    host: staging.api.yourcompany.com
    x-fern-server-name: Staging
    protocol: wss
```