nextjs
Installation
SKILL.md
Next.js
Next.js is the leading full-stack framework for React. Next.js 15 (2025) stabilizes the App Router and Server Actions, making it a robust platform for modern web apps.
When to Use
- Full-Stack React: You need API routes, DB access, and UI in one codebase.
- SEO Critical: Server-Side Rendering (SSR) is first-class.
- Vercel Ecosystem: seamless deployment to Vercel's edge network.
Quick Start (App Router)
// app/page.tsx (Server Component by default)
import { db } from "@/lib/db";
export default async function Page() {
const posts = await db.post.findMany(); // Direct DB access!