Next.js 16Cloudflare WorkersStatic Export

RxTemplate

A production-ready Next.js 16 boilerplate preconfigured for static export and deployment on Cloudflare Workers. Opinionated defaults for Biome, TypeScript, PWA, security headers, and shared hooks — clone and ship.

Every config file from this template — live, documented and copyable.

package.json
{
  "name": "rx-template",
  "version": "0.1.0",
  "author": "RxNote",
  "private": true,
  "packageManager": "npm@12.2.3",
  "description": "A Next.js boilerplate.",
  "engines": {
    "node": ">=26.0.0"
  },
  "scripts": {
    "dev": "next dev",
    "build": "next build",
    "start": "npx serve@latest out",
    "lint": "biome check --write",
    "typecheck": "tsc --noEmit"
  },
  "dependencies": {
    "lucide-react": "^1.84.0",
    "next": "^16.4.6",
    "next-themes": "^0.4.6",
    "react": "^19.3.1",
    "react-dom": "^19.3.1"
  },
  "devDependencies": {
    "@biomejs/biome": "^2.6.9",
    "@tailwindcss/turbopack": "^4.3.5",
    "@types/node": "^26.6.11",
    "@types/react": "^19.3.3",
    "@types/react-dom": "^19.3.0",
    "knip": "^6.49.0",
    "tailwindcss": "^4.3.5",
    "typescript": "^7.0.2"
  }
}