Cursor rules for building Next.js applications with the App Router, React Server Components, and Server Actions.
- App Router architecture (page.tsx, layout.tsx, loading.tsx, error.tsx)
- React Server Components vs Client Components (
'use client'boundaries) - Data fetching patterns (server-side fetch, caching, ISR, revalidation)
- Server Actions for mutations with Zod validation
- SEO with generateMetadata
- Performance (next/image, next/font, dynamic imports, code splitting)
- File-based routing, route groups, parallel routes
- Testing with Vitest and Playwright
cp .cursorrules /path/to/your/nextjs-project/.cursorrules