Skip to content

warn(prisma-client) Already 10 Prisma Clients are actively running. #4399

Answered by sehmaschine
theprantadutta asked this question in Q&A
Discussion options

You must be logged in to vote

I think you could add a file _base.js (for example) within your folder api, create the PrismaClient there and import it with your api routes.

Replies: 16 comments 24 replies

Comment options

You must be logged in to vote
11 replies
@theprantadutta
Comment options

@sehmaschine
Comment options

Answer selected by jharrell
@nikolasburk
Comment options

@theprantadutta
Comment options

@juanzgc
Comment options

@sehmaschine
Comment options

Comment options

You must be logged in to vote
1 reply
@glaucusec
Comment options

Comment options

You must be logged in to vote
1 reply
@janpio
Comment options

Comment options

You must be logged in to vote
1 reply
@mytchdot
Comment options

Comment options

You must be logged in to vote
1 reply
@queicherius
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@vHeemstra
Comment options

@robhrt7
Comment options

@anesask
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@KaramGhazzi
Comment options

@millsp
Comment options

Comment options

You must be logged in to vote
1 reply
@guicuton
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@johnchonn
Comment options

@umkara
Comment options

Comment options

You must be logged in to vote
1 reply
@johnchonn
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet