10 lines
427 B
Plaintext
10 lines
427 B
Plaintext
---
|
|
description: Best practices for Next.js applications and routing
|
|
globs: **/*.{ts,tsx}
|
|
---
|
|
|
|
- Utilize Next.js 15's new features like Server Actions for improved performance and security
|
|
- Implement proper error handling with `error.tsx` and `not-found.tsx` for better user experience
|
|
- Use `next-safe-action` for secure form submissions and API calls
|
|
- Leverage `next-themes` for easy theme management and dark mode support
|