Type-Safe Content in Astro: Moving Beyond Glob Imports with Content Collections
Astro Content Collections replace fragile glob imports with Zod-validated, TypeScript-typed content authoring. This post walks through migrating a blog from Astro.glob() to collections, shows generated types, and covers trade-offs: dev startup cost, render() constraints, and image handling.