10 lines
398 B
Plaintext
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. |