BMAD-METHOD/.claude/rules/javascript-astro-tailwind-c.../astro-routing-and-pages.mdc

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.