@0strich/next-starter-cloudflare

Next.js + Cloudflare Workers Starter

Build your Next.js app with Cloudflare Workers and OpenNext, without the noise. No starter template bloat, no premium versions, and nothing overly opinionated... more or less 😅.

View on GitHub
  • Image Optimization Enabled

    Get Next.js<Image/>optimization like on Vercel, but with Cloudflare Image Transformations instead. Works with images in the/public directory, and remote images via Cloudflare Images or R2 bucket.

  • Cloudflare + OpenNext

    Deployed and hosted on Cloudflare Workers via OpenNext with on-demand revalidation and caching using R2 Object Storage and Durable Objects. Connect your project's GitHub repo to your Cloudflare Worker to enable CI/CD for builds.

  • Minimal Dev Tooling

    ESLint, Tailwind v4, and Lefthook + Commitlint pre-configured for code quality and consistency across teams. Linting rules and config by @antfu/eslint-config. Bring your own testing framework, observability, and logging.

Ben Kim Unsplash
Image transformed and served by Cloudflare from the Next.js /public folder.
Ben Kim Unsplash
Image transformed and served by Cloudflare from R2 bucket.