Files
main/awesome-cursor-rules-mdc/nextjs-react-tailwind-cursorrules-prompt-file/next-js-conventions-and-best-practices.mdc
T
2025-02-17 17:50:15 +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.