diff --git a/content/200-orm/800-more/600-help-and-troubleshooting/100-help-articles/400-nextjs-prisma-client-dev-practices.mdx b/content/200-orm/800-more/600-help-and-troubleshooting/100-help-articles/400-nextjs-prisma-client-dev-practices.mdx index 97198b9f25..4567d1fbd5 100644 --- a/content/200-orm/800-more/600-help-and-troubleshooting/100-help-articles/400-nextjs-prisma-client-dev-practices.mdx +++ b/content/200-orm/800-more/600-help-and-troubleshooting/100-help-articles/400-nextjs-prisma-client-dev-practices.mdx @@ -29,9 +29,9 @@ const prismaClientSingleton = () => { return new PrismaClient() } -declare global { - var prismaGlobal: undefined | ReturnType -} +declare const globalThis: { + prisma: ReturnType; +} & typeof global; const prisma = globalThis.prismaGlobal ?? prismaClientSingleton()