A Next.js 16 App Router starter in TypeScript with React 19 server components, for developers who want a clean server-rendered project to build on. It includes a shared layout, Home, About and 404 pages, a GET /api/health route handler, ESLint and Vitest.
by Light CloudFull-stack


Pages are React server components rendered on the Node.js server, and route handlers in app/api/ answer with JSON, so one project covers both the site and a small API. The home page opts into per-request rendering with dynamic = force-dynamic to show server rendering at work; remove that line to prerender it at build time. Most people first add pages under app/ and a database or auth next. Deploying runs npm run build, then npm start in a container that listens on PORT.
Create a folder under app/ with a page.tsx in it: app/contact/page.tsx becomes /contact. Add a link to it in components/site-header.tsx.
Create a route.ts file under app/api/ and export a function named after the HTTP method, as in app/api/health/route.ts. app/api/hello/route.ts with export function GET() answers GET /api/hello.
Yes. Remove export const dynamic = force-dynamic from app/page.tsx and Next.js renders it once at build time. Route handlers keep working because the app still runs on a server.
Yes. It is MIT licensed and runs as a server app, and the Light Cloud Free plan includes 3 server apps with no card needed.
Yes. It has no Light Cloud code in it: any host with Node.js 20.9 or later runs it with npm ci, npm run build and npm start.