TL;DR new PrismaClient() を複数回書いてる可能性があるので、 root直下でlibのようなファイルを作り、そこで、PrsimaClientのインスタンスを1度だけ生成し、そこからimportする形で、PrismaClientのインスタンスを使用すれば解決。 概要 Prismaを使用している時、 warn(prisma-client) Already 10 Prisma Clients are actively runningというメッセージがコンソールに表示されることがある。 本番Build時にこの箇所が原因で、DBのコネクション数の制限のエラーになることがある。 前提 Node.js: 14.16 TypeScript: 4.2.3 ts-node: 9.1.1 prisma: 2.18.0 @prisma/client: 2.18.0 原因 new Prisma