import { Callout } from "nextra/components";
To create a new Next.js app, pre-configured to run on Cloudflare using @opennextjs/cloudflare
, run:
npm create cloudflare@latest -- my-next-app --framework=next --platform=workers
Basic example apps are included in the repository for @opennextjs/cloudflare
package:
create-next-app
— a Next.js project bootstrapped withcreate-next-app
.api
— a minimal Next.js project with a single API routemiddleware
— a minimal Next.js project using middlewarevercel-blog-starter
— a blog project using SSG
You can use these to understand how to configure your Next.js app to use @opennextjs/cloudflare
, or refer to Get Started.
The Next.js Commerce demo app works with @opennextjs/cloudflare
. You can view a deployed version of it here.