Next.js starter for Cloudflare Pages

Next.js, shadcn/ui, Vitest, and Playwright in one root project.

This starter keeps the local developer experience close to standard Next.js while preparing production builds for Cloudflare with OpenNext.

CLI Flow

Starter checklist

  1. 1npm run dev
  2. 2npm run test
  3. 3npm run test:e2e
  4. 4npm run cf:build

App Router + TypeScript

Root-level Next.js 16 app using the src directory and strict TypeScript.

Vitest + Testing Library

Fast unit tests with jsdom, jest-dom matchers, and coverage output.

Playwright

End-to-end browser tests wired against the local Next dev server.

Cloudflare Ready

OpenNext and Wrangler scripts prepared for Cloudflare deployment and preview.