Skip to content

Support live content collections #40

@pawcoding

Description

@pawcoding

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:

Metadata

Metadata

Assignees

Labels

priority/high[internal] This will be done in the near future and is on the roadmapreleased on @next[bot] This is available in a pre-releaseteam/internal[internal] This will be done by the core teamtype/featureNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions