diff --git a/fern/products/api-def/openapi/servers.mdx b/fern/products/api-def/openapi/servers.mdx index 2d8167604..d5fc8e1b0 100644 --- a/fern/products/api-def/openapi/servers.mdx +++ b/fern/products/api-def/openapi/servers.mdx @@ -23,7 +23,7 @@ Specifying servers is valuable for both SDKs and Docs: If you have more than one server, we recommend specifying an `x-fern-server-name` to name the server. -```yml openapi.yml {3,5} +```yml openapi.yml {2,4} servers: - x-fern-server-name: Production url: https://api.yourcompany.com/ @@ -40,7 +40,7 @@ of your endpoints might be hosted at `api.yourcompany.com`. To specify this, you will need to add configuration to both your `generators.yml` and OpenAPI spec. The snippet directly below shows how to configure an environment with multiple urls in your `generators.yml`. -```yml generators.yml {3-8} +```yml generators.yml {6-7} api: default-environment: Production default-url: api @@ -66,7 +66,7 @@ paths: If you have multiple environments like development or staging, you can model those in your `generators.yml` as well. -```yml generators.yml {7-12} +```yml generators.yml {8-13} api: default-environment: Production default-url: api