Framework: Next.js 14+ (App Router) Language: TypeScript/JavaScript Use Cases: Full-Stack Web Apps, SSR/SSG, E-commerce, Blogs, Dashboards
Next.js is a React framework providing server-side rendering, static site generation, API routes, and full-stack development in a single codebase. Version 14+ uses the App Router as the default, built on React Server Components.
| page.tsx | Route UI (makes segment publicly accessible) | | layout.tsx | Shared layout (wraps children, persists) | | loading.tsx | Loading UI (Suspense boundary) | | error.tsx | Error boundary (must be 'use client') | | not-found.tsx | 404 UI for this segment | | route.ts | API route handler (GET, POST, etc.) |
Next.js Oltre 14 guardrail, modelli e best practice del framework per lo sviluppo assistito dall'intelligenza artificiale. Da utilizzare quando si lavora con progetti Next.js o quando l'utente menziona Next.js/Next. Fornisce modelli di router per app, componenti server, recupero dei dati e linee guida per la distribuzione. Fonte: ar4mirez/samuel.