From 6074011a0e19b511d0598475b718b96f8b7ed05e Mon Sep 17 00:00:00 2001 From: Victor Berchet Date: Fri, 27 Jun 2025 11:12:15 +0200 Subject: [PATCH] add a changelog entry about Open Next perf improvements --- .../workers/2025-06-05-open-next-size.mdx | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/content/changelog/workers/2025-06-05-open-next-size.mdx diff --git a/src/content/changelog/workers/2025-06-05-open-next-size.mdx b/src/content/changelog/workers/2025-06-05-open-next-size.mdx new file mode 100644 index 000000000000000..a3da4b9efaa6f3e --- /dev/null +++ b/src/content/changelog/workers/2025-06-05-open-next-size.mdx @@ -0,0 +1,25 @@ +--- +title: Performance and size optimization for the Cloudflare adapter for Open Next. +description: Update to the latest version of `@opennextjs/cloudflare` to automatically benefit from these improvements. +products: + - workers +date: 2025-06-05T19:00:00Z + +--- + +We released the Cloudflare adapter for Open Next v1.0.0 in May 2025. + +We had plans [to improve performance and size](https://blog.cloudflare.com/deploying-nextjs-apps-to-cloudflare-workers-with-the-opennext-adapter/#1-0-and-the-road-ahead) 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](https://github.com/opennextjs/opennextjs-cloudflare/pull/710) to save ~4MB on a typical uncompressed app size +- we were also able [to drop a dependency on `@ampproject/toolbox-optimizer`](https://github.com/opennextjs/opennextjs-cloudflare/pull/700) to save ~3MB on a typical uncompressed app size +- we [stopped preloading all the app routes](https://github.com/opennextjs/opennextjs-cloudflare/pull/696) 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](https://github.com/opennextjs/opennextjs-cloudflare/security/advisories/GHSA-rvpw-p7vw-wj3m) 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. + +