diff --git a/lib/db.ts b/lib/db.ts index cc0f542..2665875 100644 --- a/lib/db.ts +++ b/lib/db.ts @@ -1,4 +1,4 @@ -import { PrismaClient } from '@prisma/client'; +import { PrismaClient } from '@prisma/client/edge'; import { withAccelerate } from '@prisma/extension-accelerate'; declare global { diff --git a/package.json b/package.json index 24f4c96..cb6e12f 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "build": "next build", "start": "next start", "lint": "next lint", - "postinstall": "prisma generate", + "postinstall": "prisma generate --no-engine", "format": "prettier --check --ignore-path .gitignore .", "format:fix": "prettier --write --ignore-path .gitignore ." },