Skip to content

Commit 7089f65

Browse files
committed
chore: upgrade next to v16
1 parent b11737a commit 7089f65

File tree

7 files changed

+319
-350
lines changed

7 files changed

+319
-350
lines changed

next.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ const nextConfig: NextConfig = {
66
pageExtensions: ["ts", "tsx", "js", "jsx", "md", "mdx", "json"],
77
// https://github.com/hashicorp/next-mdx-remote?tab=readme-ov-file#installation
88
transpilePackages: ["next-mdx-remote"],
9+
reactCompiler: true,
910
experimental: {
10-
reactCompiler: true,
11+
turbopackFileSystemCacheForDev: true,
1112
},
1213
images: {
1314
// 静态导出无法优化

package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
},
1313
"scripts": {
1414
"prepare": "lefthook install",
15-
"dev": "run-p watch generate dev:turbo",
16-
"dev:turbo": "next dev --turbopack",
15+
"dev": "run-p watch generate dev:next",
16+
"dev:next": "next dev",
1717
"dev:https": "next dev --experimental-https",
1818
"postbuild": "node ./scripts/postbuild.js",
19-
"build": "npm run generate && next build --turbopack",
19+
"build": "npm run generate && next build",
2020
"start": "next start",
2121
"lint": "biome lint --write --unsafe",
2222
"watch": "onchange post/**/*.{md,mdx} -- npm run generate",
@@ -32,7 +32,7 @@
3232
"dayjs": "^1.11.18",
3333
"lodash-es": "^4.17.21",
3434
"lucide-react": "^0.546.0",
35-
"next": "15.5.6",
35+
"next": "16.0.0",
3636
"next-mdx-remote-client": "^2.1.7",
3737
"next-themes": "^0.4.6",
3838
"react": "^19.2.0",
@@ -47,25 +47,25 @@
4747
"tw-animate-css": "^1.4.0"
4848
},
4949
"devDependencies": {
50-
"@biomejs/biome": "2.2.6",
51-
"@netlify/plugin-nextjs": "^5.14.0",
52-
"@tailwindcss/postcss": "^4.1.14",
50+
"@biomejs/biome": "2.3.0",
51+
"@netlify/plugin-nextjs": "^5.14.3",
52+
"@tailwindcss/postcss": "^4.1.16",
5353
"@tailwindcss/typography": "^0.5.19",
5454
"@types/fs-extra": "^11.0.4",
5555
"@types/lodash-es": "^4.17.12",
56-
"@types/node": "^22.18.11",
56+
"@types/node": "^24.9.1",
5757
"@types/react": "^19.2.2",
5858
"@types/react-dom": "^19.2.2",
5959
"babel-plugin-react-compiler": "^1.0.0",
6060
"fs-extra": "^11.3.2",
6161
"globals": "^16.4.0",
62-
"lefthook": "^1.13.6",
62+
"lefthook": "^2.0.1",
6363
"next-sitemap": "^4.2.3",
6464
"npm-run-all2": "^8.0.4",
6565
"onchange": "^7.1.0",
6666
"pagefind": "^1.4.0",
6767
"postcss": "^8.5.6",
68-
"tailwindcss": "^4.1.14",
68+
"tailwindcss": "^4.1.16",
6969
"typescript": "^5.9.3"
7070
},
7171
"browserslist": [

0 commit comments

Comments
 (0)