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

Function initPrisma

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

Source from the content-addressed store, hash-verified

19};
20
21function initPrisma() {
22 return process.env.NODE_ENV === 'test'
23 ? new PrismaClient(settings)
24 : skipForBrowser();
25}
26
27function skipForBrowser() {
28 return typeof window === 'undefined'

Callers 1

prisma.tsFile · 0.85

Calls 1

skipForBrowserFunction · 0.85

Tested by

no test coverage detected