Examples
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 --experimental
Basic starter projects
Two basic example apps are included in the repository for @opennextjs/cloudflare
package:
create-next-app
(opens in a new tab) — a Next.js project bootstrapped withcreate-next-app
(opens in a new tab).api
(opens in a new tab) — a minimal Next.js project with a single API route
You can use these to understand how to configure your Next.js app to use @opennextjs/cloudflare
, or refer to Get Started.
Next.js Commerce Demo
The Next.js Commerce demo app (opens in a new tab) works with @opennextjs/cloudflare
. You can view a deployed version of it here (opens in a new tab).