Skip to content

Commit 9b1d598

Browse files
committed
fix: update TypeScript configuration for Next.js routes
1 parent 371b9df commit 9b1d598

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

next-env.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// <reference types="next" />
22
/// <reference types="next/image-types/global" />
3-
import "./.next/dev/types/routes.d.ts";
3+
import "./.next/types/routes.d.ts";
44

55
// NOTE: This file should not be edited
66
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@
3636
"types/*.ts",
3737
"postcss.config.js",
3838
".next\\dev/types/**/*.ts",
39-
".next\\dev/types/**/*.ts"
39+
".next\\dev/types/**/*.ts",
40+
".next/dev/types/**/*.ts"
4041
],
4142
"exclude": [
4243
"node_modules"

0 commit comments

Comments
 (0)