This sibling project targets Cloudflare’s edge platform, adapting Next.js apps to run on Workers and related services. It converts server components, API routes, and middleware into Worker scripts, while placing static assets in globally distributed storage for low-latency delivery. The adapter accounts for edge constraints—limited runtime APIs, streaming semantics, and per-request cold starts—so Next.js features remain functional at the perimeter. It integrates with platform primitives like key-value stores and durable/relational options where needed for sessions, caches, or data hydration. The developer workflow mirrors standard Next.js builds, with additional steps to package and deploy to the edge without editing application code. Emphasis is placed on fast first byte and consistent behavior worldwide, making it attractive for content-heavy or interactive apps.
Features
- Supports App & Pages routers, SSG, SSR, ISR, middleware, image optimization, PPR, composable caching
- Integrates with Cloudflare Images for optimized image serving
- Supports Node.js API runtime in Workers (not Edge runtime)
- Build, preview, and deploy via CLI with Wrangler integration (build, deploy, preview)
- Local development integration via initOpenNextCloudflareForDev helper
- Active development with frequent pre‑release versions