Converted global to globalThis.

This commit is contained in:
Mike Cao 2025-04-28 23:05:18 -07:00
parent 886b7e9e56
commit c969603001
9 changed files with 25 additions and 22 deletions

View file

@ -372,7 +372,7 @@ function getClient(params?: {
}
if (process.env.NODE_ENV !== 'production') {
global[PRISMA] = prisma;
globalThis[PRISMA] = prisma;
}
log('Prisma initialized');
@ -380,7 +380,7 @@ function getClient(params?: {
return prisma;
}
const client = global[PRISMA] || getClient();
const client = globalThis[PRISMA] || getClient();
export default {
client,