Skip to content

Commit d2516b1

Browse files
committed
fix: downgrade Next.js to v15 for Cloudflare Workers compatibility
Next.js 16 causes runtime error on Cloudflare Workers: "Cannot assign to read only property 'setImmediate'" - Downgrade next from 16.1.1 to 15.5.9 - Update tsconfig.json jsx setting (auto-changed by Next.js) - Add .open-next and next-env.d.ts to ESLint ignores
1 parent 651194d commit d2516b1

File tree

4 files changed

+83
-93
lines changed

4 files changed

+83
-93
lines changed

eslint.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import globals from "globals";
88
export default [
99
js.configs.recommended,
1010
{
11-
ignores: [".next/**", "node_modules/**", "out/**"],
11+
ignores: [".next/**", ".open-next/**", "node_modules/**", "out/**", "next-env.d.ts"],
1212
},
1313
{
1414
files: ["**/*.{ts,tsx}"],

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"d3-sankey": "^0.12.3",
2020
"d3-shape": "^3.2.0",
2121
"framer-motion": "^12.25.0",
22-
"next": "^16.1.1",
22+
"next": "^15.5.9",
2323
"react": "^19.2.3",
2424
"react-dom": "^19.2.3",
2525
"viem": "^2.44.1",
@@ -39,7 +39,7 @@
3939
"@typescript-eslint/eslint-plugin": "^8.52.0",
4040
"@typescript-eslint/parser": "^8.52.0",
4141
"eslint": "^9.39.2",
42-
"eslint-config-next": "^16.1.1",
42+
"eslint-config-next": "^15.5.9",
4343
"eslint-plugin-react": "^7.37.5",
4444
"eslint-plugin-react-hooks": "^7.0.1",
4545
"globals": "^17.0.0",

0 commit comments

Comments
 (0)