Files
main/rules-v0-deprecated/web-app-optimization-cursorrules-prompt-file/sveltekit-routing-and-pages.mdc
2025-03-03 23:40:27 +05:30

8 lines
357 B
Plaintext

---
description: Applies routing conventions in SvelteKit projects.
globs: src/routes/**/*.svelte
---
- Utilize SvelteKit's file-based routing system in the src/routes/ directory.
- Implement dynamic routes using [slug] syntax.
- Use load functions for server-side data fetching and pre-rendering.
- Implement proper error handling with +error.svelte pages.