Skip to content

Commit 54fd050

Browse files
committed
Upgrade to Next 16
1 parent 5dca520 commit 54fd050

File tree

7 files changed

+1484
-601
lines changed

7 files changed

+1484
-601
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
# next.js
1212
/.next/
1313
/out/
14+
next-env.d.ts
1415

1516
# production
1617
/build

next-env.d.ts

Lines changed: 0 additions & 5 deletions
This file was deleted.

next.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@
88
const nextConfig = {
99
pageExtensions: ['jsx', 'js', 'ts', 'tsx', 'mdx', 'md'],
1010
reactStrictMode: true,
11+
reactCompiler: true,
1112
experimental: {
1213
scrollRestoration: true,
13-
reactCompiler: true,
1414
},
1515
env: {},
16+
turbopack: {},
1617
webpack: (config, {dev, isServer, ...options}) => {
1718
if (process.env.ANALYZE) {
1819
const {BundleAnalyzerPlugin} = require('webpack-bundle-analyzer');

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
"date-fns": "^2.16.1",
3434
"debounce": "^1.2.1",
3535
"github-slugger": "^1.3.0",
36-
"next": "15.1.0",
37-
"next-remote-watch": "^1.0.0",
36+
"next": "^16.1.0-canary.31",
37+
"next-remote-watch": "^2.0.0",
3838
"parse-numeric-range": "^1.2.0",
3939
"react": "^19.0.0",
4040
"react-collapsed": "4.0.4",
@@ -63,7 +63,7 @@
6363
"babel-eslint": "10.x",
6464
"babel-plugin-react-compiler": "19.0.0-beta-e552027-20250112",
6565
"eslint": "7.x",
66-
"eslint-config-next": "12.0.3",
66+
"eslint-config-next": "^16.1.0-canary.31",
6767
"eslint-config-react-app": "^5.2.1",
6868
"eslint-plugin-flowtype": "4.x",
6969
"eslint-plugin-import": "2.x",

src/utils/compileMDX.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {MDXComponents} from 'components/MDX/MDXComponents';
33

44
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
55
// ~~~~ IMPORTANT: BUMP THIS IF YOU CHANGE ANY CODE BELOW ~~~
6-
const DISK_CACHE_BREAKER = 10;
6+
const DISK_CACHE_BREAKER = 11;
77
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
88

99
export default async function compileMDX(
@@ -99,6 +99,8 @@ export default async function compileMDX(
9999
const fakeRequire = (name: string) => {
100100
if (name === 'react/jsx-runtime') {
101101
return require('react/jsx-runtime');
102+
} else if (name === 'react/jsx-dev-runtime') {
103+
return require('react/jsx-dev-runtime');
102104
} else {
103105
// For each fake MDX import, give back the string component name.
104106
// It will get serialized later.

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"moduleResolution": "node",
2121
"resolveJsonModule": true,
2222
"isolatedModules": true,
23-
"jsx": "preserve",
23+
"jsx": "react-jsx",
2424
"baseUrl": "src",
2525
"incremental": true,
2626
"plugins": [

yarn.lock

Lines changed: 1474 additions & 590 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)