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

10 lines
398 B
Plaintext

---
description: Rules for utilizing Astro's file-based routing system and dynamic routes.
globs: src/pages/**/*.astro
---
Routing and Pages
- Utilize Astro's file-based routing system in the src/pages/ directory.
- Implement dynamic routes using [...slug].astro syntax.
- Use getStaticPaths() for generating static pages with dynamic routes.
- Implement proper 404 handling with a 404.astro page.