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.