Files
main/awesome-cursor-rules-mdc/javascript-astro-tailwind-css-cursorrules-prompt-f/astro-routing-and-pages.mdc
T
2025-02-17 17:50:15 +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.