From 077c4252f80ba15913c65f4bbcc9231d7cc4bf65 Mon Sep 17 00:00:00 2001 From: Ahmad <103906421+ahmadk953@users.noreply.github.com> Date: Tue, 26 Mar 2024 20:58:59 -0400 Subject: [PATCH] Made PrismaClient use Edge for Better Performance --- lib/db.ts | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 ." },