-
Notifications
You must be signed in to change notification settings - Fork 4
Description
A few hour ago Astro 5.10 was released, including a new experimental API for live content collections. In contrast to the existing loader API, this one does not fetch the data at build time but at runtime. Using this, we can display live data from PocketBase instead of having to rebuild to update the data on the site.
Since this is a separate API to the existing one, the loader will not drop support for build time content collections which still have their use cases. Instead we'll add a second loader function that can be used for these live content collections.
Reading through the documentation it's not (yet) possible to generate types using Zod like the current loader does. Instead you need to provide your own type definitions.
More information: