Files
main/rules-v0-deprecated/nextjs-react-tailwind-cursorrules-prompt-file/next-js-conventions-and-best-practices.mdc
2025-03-03 23:40:27 +05:30

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.