Files
2025-02-27 00:04:07 +05:30

10 lines
378 B
Plaintext

---
description: Rules for data fetching in Astro using Astro.props, getStaticPaths(), and Astro.glob().
globs: src/**/*.*
---
Data Fetching
- Use Astro.props for passing data to components.
- Implement getStaticPaths() for fetching data at build time.
- Use Astro.glob() for working with local files efficiently.
- Implement proper error handling for data fetching operations.