Book a call Free rebuild
Home/Glossary/Astro/Live Collections

Live Collections

By Seahawk November 16, 2026

Astro glossaryLive collections are Astro content collections fetched when a page is requested instead of at build time, so changes show without a rebuild.

A live collection is a content collection that Astro fetches when a page is requested, not when the site is built. Content that changes often, such as prices, stock, or posts from a CMS, then shows up without a rebuild.

Trade-offs

Live collections are configured in src/live.config.ts and queried with getLiveCollection() and getLiveEntry(). They need on-demand rendering and an adapter. The data is fetched on each request unless you cache it, and features that rely on build time, such as MDX and image optimization, are not available for it.

EmDash is built on them: an EmDash site reads its posts and pages through live collections, which is why publishing in the admin does not need a deploy.

Source: Astro docs: Content collections (live collections), EmDash README.

Em Workers

EmDash and Astro sites at revolutionary pricing.

Lightning-fast, secure websites delivered on EmDash and Astro. For the AI-curious bunch.