Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .changeset/seven-ducks-dig.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
"@opennextjs/cloudflare": patch
---

fix: patch Next config for missing fields.

There was a regression in Next 16.1.0 (https://github.com/vercel/next.js/pull/86830) and some fields were missing in the config.
The Next team fixed that in 16.1.4 (https://github.com/vercel/next.js/pull/88733).

This PR introduce a patch for 16.1.0-16.1.3
4 changes: 2 additions & 2 deletions examples/bugs/gh-223/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"deploy:worker": "pnpm run build:worker && pnpm wrangler deploy"
},
"dependencies": {
"@aws-sdk/client-s3": "^3.721.0",
"@aws-sdk/s3-request-presigner": "^3.721.0",
"@aws-sdk/client-s3": "^3.971.0",
"@aws-sdk/s3-request-presigner": "^3.971.0",
"next": "15.5.9",
"react": "^19.0.3",
"react-dom": "^19.0.3"
Expand Down
6 changes: 3 additions & 3 deletions examples/common/config-e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ export function configurePlaywright(

const projects = [
{
name: "chromium",
name: `${app} - chromium`,
use: { ...devices["Desktop Chrome"] },
},
{
name: "firefox",
name: `${app} - firefox`,
use: { ...devices["Desktop Firefox"] },
},
{
name: "webkit",
name: `${app} - webkit`,
use: { ...devices["Desktop Safari"] },
},
];
Expand Down
2 changes: 1 addition & 1 deletion examples/playground16/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"cf-typegen": "wrangler types --env-interface CloudflareEnv"
},
"dependencies": {
"next": "16.0.10",
"next": "16.1.4",
"react-dom": "19.2.3",
"react": "19.2.3"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/cloudflare/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"dependencies": {
"@ast-grep/napi": "0.40.0",
"@dotenvx/dotenvx": "catalog:",
"@opennextjs/aws": "3.9.8",
"@opennextjs/aws": "3.9.10",
"cloudflare": "^4.4.1",
"enquirer": "^2.4.1",
"glob": "catalog:",
Expand Down
3 changes: 3 additions & 0 deletions packages/cloudflare/src/cli/build/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { compileCache } from "@opennextjs/aws/build/compileCache.js";
import { createCacheAssets, createStaticAssets } from "@opennextjs/aws/build/createAssets.js";
import { createMiddleware } from "@opennextjs/aws/build/createMiddleware.js";
import * as buildHelper from "@opennextjs/aws/build/helper.js";
import { patchOriginalNextConfig } from "@opennextjs/aws/build/patch/patches/index.js";
import { printHeader } from "@opennextjs/aws/build/utils.js";
import logger from "@opennextjs/aws/logger.js";
import type { Unstable_Config } from "wrangler";
Expand Down Expand Up @@ -68,6 +69,8 @@ export async function build(
// Generate deployable bundle
printHeader("Generating bundle");

await patchOriginalNextConfig(options);

compileCache(options);
compileEnvFiles(options);
await compileInit(options, wranglerConfig);
Expand Down
Loading
Loading