Fix seed.ts import and exclude prisma dir from Next.js tsc
- seed.ts: use ../src/generated/prisma/client (Prisma 7 entry point) - tsconfig.json: exclude prisma/ so seed.ts is not type-checked by Next.js build Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -1,5 +1,5 @@
|
||||
import "dotenv/config";
|
||||
import { PrismaClient } from "../src/generated/prisma";
|
||||
import { PrismaClient } from "../src/generated/prisma/client";
|
||||
import bcrypt from "bcryptjs";
|
||||
|
||||
const prisma = new PrismaClient();
|
||||
|
||||
Reference in New Issue
Block a user