Prisma client extensions in T3 app
T3 app uses this variable called
globalThis and globalForPrisma. I don't understand the usage of it, but it nullifies the extended types. Can I just remove these and use new PrismaClient()? If not, what else can I do?- The file in question: src/server/db.ts
- The page for client extensions: https://www.prisma.io/docs/concepts/components/prisma-client/client-extensions/result
Prisma
Extend the functionality of Prisma Client, result component
