fix: update Next.js type reference path and exclude scratch directory from TypeScript configuration
This commit is contained in:
2
next-env.d.ts
vendored
2
next-env.d.ts
vendored
@@ -1,6 +1,6 @@
|
|||||||
/// <reference types="next" />
|
/// <reference types="next" />
|
||||||
/// <reference types="next/image-types/global" />
|
/// <reference types="next/image-types/global" />
|
||||||
import "./.next/dev/types/routes.d.ts";
|
import "./.next/types/routes.d.ts";
|
||||||
|
|
||||||
// NOTE: This file should not be edited
|
// NOTE: This file should not be edited
|
||||||
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
|
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
|
||||||
|
|||||||
@@ -1,7 +0,0 @@
|
|||||||
import { prisma } from './admin/src/lib/prisma';
|
|
||||||
|
|
||||||
async function test() {
|
|
||||||
console.log('Prisma keys:', Object.keys(prisma));
|
|
||||||
}
|
|
||||||
|
|
||||||
test();
|
|
||||||
@@ -45,6 +45,7 @@
|
|||||||
],
|
],
|
||||||
"exclude": [
|
"exclude": [
|
||||||
"node_modules",
|
"node_modules",
|
||||||
"admin"
|
"admin",
|
||||||
|
"scratch"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user