BMAD-METHOD/.claude/rules/nextjs-app-router-cursorrul.../next-js-app-router-best-pra...

11 lines
395 B
Plaintext

---
description: This rule enforces Next.js App Router best practices in the 'app' directory.
globs: app/**/*.*
---
- Use server components by default
- Implement client components only when necessary
- Utilize the new file-based routing system
- Use layout.js for shared layouts
- Implement loading.js for loading states
- Use error.js for error handling
- Utilize route handlers for API routes