Skip to content

Commit 060c999

Browse files
committed
Upgrade to Next 16
1 parent 2da4f7f commit 060c999

File tree

7 files changed

+241
-245
lines changed

7 files changed

+241
-245
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ node_modules
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
@@ -15,11 +15,12 @@
1515
const nextConfig = {
1616
pageExtensions: ['jsx', 'js', 'ts', 'tsx', 'mdx', 'md'],
1717
reactStrictMode: true,
18+
reactCompiler: true,
1819
experimental: {
1920
scrollRestoration: true,
20-
reactCompiler: true,
2121
},
2222
env: {},
23+
turbopack: {},
2324
webpack: (config, {dev, isServer, ...options}) => {
2425
if (process.env.ANALYZE) {
2526
const {BundleAnalyzerPlugin} = require('webpack-bundle-analyzer');

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
"analyze": "ANALYZE=true next build",
88
"dev": "next-remote-watch ./src/content",
99
"build": "next build && node --experimental-modules ./scripts/downloadFonts.mjs",
10-
"lint": "next lint && eslint \"src/content/**/*.md\"",
11-
"lint:fix": "next lint --fix && eslint \"src/content/**/*.md\" --fix",
10+
"lint": "eslint .",
11+
"lint:fix": "eslint . --fix",
1212
"format:source": "prettier --config .prettierrc --write \"{plugins,src}/**/*.{js,ts,jsx,tsx,css}\"",
1313
"nit:source": "prettier --config .prettierrc --list-different \"{plugins,src}/**/*.{js,ts,jsx,tsx,css}\"",
1414
"prettier": "yarn format:source",
@@ -35,8 +35,8 @@
3535
"classnames": "^2.2.6",
3636
"debounce": "^1.2.1",
3737
"github-slugger": "^1.3.0",
38-
"next": "15.1.11",
39-
"next-remote-watch": "^1.0.0",
38+
"next": "16.1.0-canary.31",
39+
"next-remote-watch": "^2.0.0",
4040
"parse-numeric-range": "^1.2.0",
4141
"react": "^19.0.0",
4242
"react-collapsed": "4.0.4",

src/utils/compileMDX.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ export default async function compileMDX(
106106
const fakeRequire = (name: string) => {
107107
if (name === 'react/jsx-runtime') {
108108
return require('react/jsx-runtime');
109+
} else if (name === 'react/jsx-dev-runtime') {
110+
return require('react/jsx-dev-runtime');
109111
} else {
110112
// For each fake MDX import, give back the string component name.
111113
// 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: 231 additions & 234 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)