MCPcopy Index your code
hub / github.com/Linen-dev/linen.dev / skipForBrowser

Function skipForBrowser

packages/database/src/prisma.ts:27–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25}
26
27function skipForBrowser() {
28 return typeof window === 'undefined'
29 ? global.prisma || new PrismaClient(settings)
30 : global.prisma!;
31}
32
33export const prisma = initPrisma();
34

Callers 1

initPrismaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected