From c11464fcbc1caf3afadebc3e57a7c0796a7d3e8c Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Wed, 5 Aug 2026 17:07:27 +0000 Subject: [PATCH] docs: document requireBaseUrl TypeScript generator config Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- .../sdks/generators/typescript/configuration.mdx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/fern/products/sdks/generators/typescript/configuration.mdx b/fern/products/sdks/generators/typescript/configuration.mdx index 1627630da..001d30a33 100644 --- a/fern/products/sdks/generators/typescript/configuration.mdx +++ b/fern/products/sdks/generators/typescript/configuration.mdx @@ -462,6 +462,16 @@ Publish your SDK to [JSR](https://jsr.io/). When enabled, the generator will generate a `jsr.json` as well as a GitHub workflow to publish to JSR. + +When enabled, `baseUrl` becomes a required client option and `environment` becomes optional. Generated code snippets and the `README.md` construct the client with `baseUrl` and omit the environments section. + +```typescript +const client = new AcmeClient({ baseUrl: "https://api.acme.com" }); +``` + +Enable this for APIs with no named [environments](/learn/sdks/reference/generators-yml), or when callers point the SDK at an arbitrary host. The option is ignored for APIs with multiple base URLs, whose clients resolve each URL from `environment`. + + When enabled, property names in the generated code retain their original casing from the API definition instead of being converted to camelCase.