Skip to content

Commit cd3b739

Browse files
committed
fix: update nextjs example
1 parent 29fe877 commit cd3b739

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

examples/nextjs/next-env.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/// <reference types="next" />
22
/// <reference types="next/image-types/global" />
3+
/// <reference types="next/navigation-types/compat/navigation" />
34

45
// NOTE: This file should not be edited
56
// see https://nextjs.org/docs/basic-features/typescript for more information.

examples/nextjs/tsconfig.json

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,21 @@
11
{
2-
"exclude": ["node_modules"],
2+
"exclude": [
3+
"node_modules"
4+
],
35
"extends": "@repo/typescript-config/nextjs.json",
46
"compilerOptions": {
57
"outDir": "dist",
68
"plugins": [
79
{
810
"name": "next"
911
}
10-
]
12+
],
13+
"strictNullChecks": true
1114
},
12-
"include": ["src", "next.config.js", "next-env.d.ts", ".next/types/**/*.ts"]
15+
"include": [
16+
"src",
17+
"next.config.js",
18+
"next-env.d.ts",
19+
".next/types/**/*.ts"
20+
]
1321
}

0 commit comments

Comments
 (0)