astro
v5.0.0
Astro 5: The Content Layer API
Astro 5 introduces a new Content Layer API that makes working with content collections more powerful than ever.
Astro 5: The Content Layer API
Astro 5 revolutionizes how you work with content in your projects.
Content Layer API
The new Content Layer API provides a unified way to fetch and transform content:
javascript
import { defineCollection } from 'astro:content';const blog = defineCollection({
loader: async () => {
// Fetch from CMS, database, or files
},
});
View Transitions
Native support for the View Transitions API enables smooth page transitions:
astro
About Us
Astro continues to be the best choice for content-heavy sites.
Key Highlights
- New features for developers
- Performance improvements
- Recommended for migration
Note
Before upgrading, we recommend reviewing the breaking changes in the official documentation.