Skip to content

Commit ed7d4fa

Browse files
committed
feat: next16 compatibility for docs
1 parent 32f8267 commit ed7d4fa

File tree

3 files changed

+31
-12
lines changed

3 files changed

+31
-12
lines changed

docs/next-env.d.ts

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"flutter:clean": "rm -rf public/flutter/authenticator",
1111
"flutter:copy": "cp -r ./flutter/authenticator/build/web public/flutter/authenticator",
1212
"prebuild": "yarn build:cssvars-table && yarn build:props-tables",
13-
"build": "NODE_OPTIONS=\"--max-old-space-size=4096\" next build",
13+
"build": "NODE_OPTIONS=\"--max-old-space-size=4096\" next build --webpack",
1414
"build:cssvars-table": "node --require esbuild-register ./scripts/generate-cssvars-table-data.ts",
1515
"build:props-tables": "node --require esbuild-register ./scripts/generate-props-tables-data.ts",
1616
"clean": "rimraf node_modules .next && yarn flutter:clean",
@@ -35,8 +35,8 @@
3535
"gray-matter": "^4.0.3",
3636
"lodash": "^4.17.21",
3737
"mdx-prism": "^0.3.3",
38-
"next": "^14.2.31",
39-
"next-plugin-preval": "^1.2.1",
38+
"next": "^16.0.0",
39+
"next-plugin-preval": "^1.2.8",
4040
"prism-react-renderer": "1.2.1",
4141
"raw-loader": "^4.0.2",
4242
"react": "^18.3.0",

docs/tsconfig.json

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,24 @@
22
"compilerOptions": {
33
"baseUrl": ".",
44
"target": "es5",
5-
"lib": ["dom", "dom.iterable", "esnext"],
5+
"lib": [
6+
"dom",
7+
"dom.iterable",
8+
"esnext"
9+
],
610
"paths": {
7-
"@/components/*": ["src/components/*"],
8-
"@/data/*": ["src/data/*"],
9-
"@/utils/*": ["src/utils/*"],
10-
"aws-amplify/storage": ["storageMock.ts"]
11+
"@/components/*": [
12+
"src/components/*"
13+
],
14+
"@/data/*": [
15+
"src/data/*"
16+
],
17+
"@/utils/*": [
18+
"src/utils/*"
19+
],
20+
"aws-amplify/storage": [
21+
"storageMock.ts"
22+
]
1123
},
1224
"allowJs": true,
1325
"skipLibCheck": true,
@@ -20,11 +32,17 @@
2032
"resolveJsonModule": true,
2133
"isolatedModules": true,
2234
"downlevelIteration": true,
23-
"jsx": "preserve",
35+
"jsx": "react-jsx",
2436
"incremental": true
2537
},
26-
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
27-
"exclude": ["node_modules"],
38+
"include": [
39+
"next-env.d.ts",
40+
"**/*.ts",
41+
"**/*.tsx"
42+
],
43+
"exclude": [
44+
"node_modules"
45+
],
2846
"ts-node": {
2947
"compilerOptions": {
3048
"module": "CommonJS"

0 commit comments

Comments
 (0)