Cloudflare Pages + FunctionsFree Tier Compliant

Home

Production-grade Next.js boilerplate with static export, Cloudflare Edge Functions, and zero hardcoded secrets.

Cloudflare Function Probe

GET /api/health endpoint

Click "Test Health" to probe local or deployed Function

Production Boilerplate Specifications

  • Next.js static export with unoptimized assets for Cloudflare CDN
  • Cloudflare Pages Functions with isolated Worker types at /functions
  • _routes.json configured to restrict function invocations to /api/*
  • Security & caching headers via _headers configuration
  • Zod environment validation, Sentry monitoring & Error Boundary
  • ESLint, Prettier, Husky, and lint-staged (Node v22.16.0 compatible)

Form Validation Demo

react-hook-form + zod schema validation