Cloudflare Next.js Boilerplate

Production-ready template for Next.js on Cloudflare Workers with D1 and R2

Next.js 15

Latest React framework with App Router and Server Components

Cloudflare Workers

Deploy globally with edge computing

D1 Database

Serverless SQL database at the edge

R2 Storage

Object storage without egress fees

Clerk Auth

Drop-in authentication and user management

Drizzle ORM

Type-safe database queries with migrations

Getting Started

  1. 1.Clone the repository and install dependencies
  2. 2.Configure environment variables and Cloudflare settings
  3. 3.Run migrations and start developing
  4. 4.Deploy to Cloudflare Workers with a single command