Help articles

Configuring typegen in Sanity CLI config

As of version 4.19.0 it is recommended to configure typegen through the Sanity CLI config.

Since its introduction the sanity typegen command has been configured with a separate config file, typically at sanity-typegen.json.

The Sanity CLI tooling now include the configuration properties for type generation by specifying the same parameters under the typegen field of the CLI config.

Was this page helpful?