Overview
OpenNext for Cloudflare is a monorepo that includes an adapter for deploying Next.js applications to Cloudflare’s developer platform. The @opennextjs/cloudflare package enables Next.js applications to run in the Cloudflare worker runtime using the Workers Node.js compatibility layer.
Features
- Adapter for Cloudflare: Enables the deployment of Next.js applications on Cloudflare’s platform.
- Integration with Workers Node.js compatibility layer: Allows Next.js applications to run using Cloudflare’s worker runtime.
- Documentation: Comprehensive docs for starting a new project or migrating an existing one.
- Preleases: Automatically published prerelease packages for testing the latest features and updates.
Installation
To try out the @opennextjs/cloudflare package, install it from npm:
npm install @opennextjs/cloudflare
For preleases, you can install directly from the experimental branch:
npm install https://pkg.pr.new/@opennextjs/cloudflare@experimental
For development in the repository, refer to the CONTRIBUTING page for instructions.
Summary
OpenNext for Cloudflare provides a seamless solution for deploying Next.js applications on Cloudflare’s developer platform. The package offers integration with Cloudflare’s worker runtime through a compatibility layer, allowing for efficient deployment and scalability. With prelease packages available for testing, developers can explore the latest features and updates before committing to production use.