Skip to content

Commit c65d091

Browse files
committed
fix: πŸ› update opennext and revert back to nextjs 14
build failing when running opennext 0.3 and nextjs 15
1 parent 8b79992 commit c65d091

8 files changed

+2369
-547
lines changed

β€Ž.dev.vars

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
NEXTJS_ENV=development

β€Ž.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ yarn-error.log*
2727
.vercel
2828
next-env.d.ts
2929

30-
.worker-next
30+
.open-next
3131
.wrangler
3232

3333
# jetbrains

β€Žnext-env.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
/// <reference types="next/image-types/global" />
33

44
// NOTE: This file should not be edited
5-
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
5+
// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.

β€Žopen-next.config.ts

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
const config = {
2+
default: {
3+
override: {
4+
wrapper: "cloudflare-node",
5+
converter: "edge",
6+
incrementalCache: "dummy",
7+
tagCache: "dummy",
8+
queue: "dummy",
9+
},
10+
},
11+
12+
middleware: {
13+
external: true,
14+
override: {
15+
wrapper: "cloudflare-edge",
16+
converter: "edge",
17+
proxyExternalRequest: "fetch",
18+
},
19+
},
20+
};
21+
22+
export default config;

β€Žpackage.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "The official documentation site for ICSSC projects",
55
"scripts": {
66
"build": "next build",
7-
"build:worker": "cloudflare",
7+
"build:worker": "opennextjs-cloudflare",
88
"dev": "next dev",
99
"dev:worker": "wrangler dev --port 8771",
1010
"lint": "biome lint --write .",
@@ -21,7 +21,7 @@
2121
"fumadocs-twoslash": "2.0.2",
2222
"fumadocs-ui": "14.6.1",
2323
"lucide-react": "0.468.0",
24-
"next": "15.1.1",
24+
"next": "14.2.21",
2525
"react": "19.0.0",
2626
"react-dom": "19.0.0"
2727
},
@@ -31,7 +31,7 @@
3131
"@commitlint/config-conventional": "19.6.0",
3232
"@commitlint/types": "19.5.0",
3333
"@fumadocs/cli": "0.0.4",
34-
"@opennextjs/cloudflare": "0.2.1",
34+
"@opennextjs/cloudflare": "0.3.1",
3535
"@types/mdx": "2.0.13",
3636
"@types/node": "22.10.2",
3737
"@types/react": "19.0.2",

β€Žpnpm-lock.yaml

+2,338-539
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žtsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@
2525
]
2626
},
2727
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
28-
"exclude": ["node_modules"]
28+
"exclude": ["node_modules", "open-next.config.ts"]
2929
}

β€Žwrangler.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
name = "docs"
2-
main = ".worker-next/index.mjs"
2+
main = ".open-next/worker.js"
33

44
compatibility_date = "2024-10-05"
55
compatibility_flags = ["nodejs_compat"]
66

7-
assets = { directory = ".worker-next/assets", binding = "ASSETS" }
7+
assets = { directory = ".open-next/assets", binding = "ASSETS" }
88

99
workers_dev = false
1010
routes = [{ pattern = "docs.icssc.club", custom_domain = true }]

0 commit comments

Comments
Β (0)