From fbba534f4e80350db79c52d582bb719c5182772d Mon Sep 17 00:00:00 2001 From: MTG2000 Date: Mon, 26 Sep 2022 17:19:16 +0300 Subject: [PATCH] update: use edge when env --- api/prisma/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/prisma/index.js b/api/prisma/index.js index 1ad9482..5befab5 100644 --- a/api/prisma/index.js +++ b/api/prisma/index.js @@ -1,4 +1,4 @@ -const { PrismaClient } = require('@prisma/client/edge'); +const { PrismaClient } = process.env.PRISMA_GENERATE_DATAPROXY ? require('@prisma/client/edge') : require('@prisma/client'); const createGlobalModule = require('../utils/createGlobalModule'); const createPrismaClient = () => {