Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Prisma Singleton in Next.js - Prisma
P
Prisma
•
16mo ago
•
1 reply
rwieruch
Prisma Singleton in Next.js
Hi
, I used the Prisma docs
(
https://www.prisma.io/docs/orm/more/help-and-troubleshooting/help-articles/nextjs-prisma-client-dev-practices
) to setup and tested it
. In my Next application
, I observed the fact that
, whenever I navigate between pages
, the globalThis is reset
, expected one time the Prisma client to be instantiated and used across all the app
, but this was not the case
.
Am I doing something wrong
? Does NextJS initiate Prisma on each page
?
Thank you
This is a question I got from one of my students in my new course where I didn
't know the definitive answer
.
Best practice for instantiating Prisma Client with Next.js | Prisma...
Best practice for instantiating Prisma Client with Next
.js
Prisma
Join
The official Discord server of Prisma! Find us online at prisma.io
9,819
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Prisma Singleton issue
P
Prisma / help-and-questions
4mo ago
Issue installing latest Prisma in Next.js
P
Prisma / help-and-questions
4mo ago
Next.js and Prisma Issue.
P
Prisma / help-and-questions
11mo ago
Caching server side prisma query in next js
P
Prisma / help-and-questions
2y ago