Claude Rules for Next.js
CLAUDE.md rules written specifically for Next.js projects. Covers App Router patterns, Server vs Client Components, data fetching, API routes, and Vercel deployment conventions.
1 rule matching Next.js
Why add Next.js rules to your CLAUDE.md?
Next.js has a lot of conventions that Claude doesn't always follow by default — whether it's App Router vs Pages Router data fetching, when to use Server Components, or how to structure route handlers. A good CLAUDE.md for Next.js tells Claude exactly which patterns your project uses, preventing it from generating outdated Pages Router code in an App Router project or reaching for getServerSideProps when you want server components.