Fix Prisma 7 import: use /client suffix
Prisma 7 no longer generates index.ts — entry point is client.ts. Import changed from @/generated/prisma to @/generated/prisma/client. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
import { PrismaClient } from "@/generated/prisma";
|
import { PrismaClient } from "@/generated/prisma/client";
|
||||||
|
|
||||||
const globalForPrisma = globalThis as unknown as {
|
const globalForPrisma = globalThis as unknown as {
|
||||||
prisma: PrismaClient | undefined;
|
prisma: PrismaClient | undefined;
|
||||||
|
|||||||
Reference in New Issue
Block a user