Performance and size optimization for the Cloudflare adapter for Open Next.
We released the Cloudflare adapter for Open Next v1.0.0 in May 2025.
We had plans to improve performance and size ↗ after v1 was released.
@opennextjs/cloudflare
v1.2 released on June 5, 2025 contains a few improvements:
babel
was pulled into the app code, we remove it ↗ to save ~4MB on a typical uncompressed app size- we were also able to drop a dependency on
@ampproject/toolbox-optimizer
↗ to save ~3MB on a typical uncompressed app size - we stopped preloading all the app routes ↗ to save >100ms on the first request.
Users only need to update to the latest version of @opennextjs/cloudflare
to automatically benefit from these improvements.
Note that we published CVE-2005-6087 ↗ for a SSRF vulnerability in the @opennextjs/cloudflare
package.
The vulnerability has been fixed from @opennextjs/cloudflare
v1.3.0 onwards. Please update to any version after this one. v1.3.1 is the latest at the time of writing.
Was this helpful?
- Resources
- API
- New to Cloudflare?
- Products
- Sponsorships
- Open Source
- Support
- Help Center
- System Status
- Compliance
- GDPR
- Company
- cloudflare.com
- Our team
- Careers
- 2025 Cloudflare, Inc.
- Privacy Policy
- Terms of Use
- Report Security Issues
- Trademark