Type-safe content models with cf-content-types-generator

How we keep TypeScript and Contentful in lockstep with one CLI command.

Whiteboard sprint planning

Generated types make field renames safe. Run pnpm typegen, get a compile error in the offending consumer, fix it before merging. That's the loop.

We use cf-content-types-generator with --v10 to match the Contentful SDK's WITHOUT_UNRESOLVABLE_LINKS modifier. Types land in apps/web/src/lib/contentful/types and get linted on commit.

If you're building anything bigger than a marketing site, you want this in your pipeline.