DEV Community

Discussion on: Introduction to Prisma 2 with Next.js

Collapse
 
aryanjnyc profile image
Aryan J

I'd just generate a Prisma client for each endpoint. If you're using some type of serverless endpoint, I'd generate the Prisma client outside of the called function so only one client is generated (using node's caching).