Skip to content

Commit dafcb43

Browse files
nilwurtzafc163
andauthored
🆙 update for nextjs 15 (#12)
Co-authored-by: afc163 <[email protected]>
1 parent 92daf63 commit dafcb43

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

example/with-app-router/next-env.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
/// <reference types="next/image-types/global" />
33

44
// NOTE: This file should not be edited
5-
// see https://nextjs.org/docs/basic-features/typescript for more information.
5+
// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.

example/with-app-router/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
"baseUrl": "./",
2222
"paths": {
2323
"@ant-design/nextjs-registry": ["../../src/index.ts"]
24-
}
24+
},
25+
"target": "ES2017"
2526
},
2627
"include": ["next-env.d.ts", ".next/types/**/*.ts", "**/*.ts", "**/*.tsx"],
2728
"exclude": ["node_modules"]

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"father": "^4.3.7",
4343
"husky": "^8.0.1",
4444
"lint-staged": "^13.0.3",
45-
"next": "^14.0.4",
45+
"next": "^15.0.0",
4646
"np": "^7.0.0",
4747
"prettier": "^2.0.5",
4848
"react": "^18.0.0",
@@ -52,7 +52,7 @@
5252
"peerDependencies": {
5353
"@ant-design/cssinjs": "^1.18.2",
5454
"antd": "^5.0.0",
55-
"next": "^14.0.0",
55+
"next": "^14.0.0 || ^15.0.0",
5656
"react": ">=16.0.0",
5757
"react-dom": ">=16.0.0"
5858
},

0 commit comments

Comments
 (0)