Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Next.js 14+ with TypeScript

Cursor rules for building Next.js applications with the App Router, React Server Components, and Server Actions.

Covers

  • 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

Usage

cp .cursorrules /path/to/your/nextjs-project/.cursorrules