mirror of
https://github.com/sanjeed5/awesome-cursor-rules-mdc.git
synced 2026-11-29 14:12:54 +08:00
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. |