Instantly prepare your Next.js project for deployment on Cloudflare using OpenNext.
Run the following command inside your Next.js project:
npx setup-opennext-cfIn a few seconds, your project will be automatically configured and ready for deployment on Cloudflare using:
π https://opennext.js.org/cloudflare
- Sets up the required OpenNext structure
- Configures Cloudflare deployment files
- Optimizes your Next.js project for Cloudflare Workers / Pages
- Zero manual setup needed
- Node.js 18+
- Next.js project (any version supported by OpenNext)
- Run the command inside the root of your Next.js project.
- You can re-run it anytime; it safely updates config without breaking custom settings.