12 lines
583 B
Plaintext
12 lines
583 B
Plaintext
---
|
|
description: Rules for adhering to Next.js conventions, including data fetching, rendering, routing, and using 'nuqs' for URL search parameter state management.
|
|
globs: src/**/*
|
|
---
|
|
- Use 'nuqs' for URL search parameter state management.
|
|
- Optimize Web Vitals (LCP, CLS, FID).
|
|
- Limit 'use client':
|
|
- Favor server components and Next.js SSR.
|
|
- Use only for Web API access in small components.
|
|
- Avoid for data fetching or state management.
|
|
- Follow Next.js docs for Data Fetching, Rendering, and Routing.
|
|
- Place both the /app and /components folders under a /src directory. |