Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
21
function
initPrisma() {
22
return
process.env.NODE_ENV ===
'test'
23
?
new
PrismaClient(settings)
24
: skipForBrowser();
25
}
26
27
function
skipForBrowser() {
28
return
typeof window ===
'undefined'
Callers
1
prisma.ts
File · 0.85
Calls
1
skipForBrowser
Function · 0.85
Tested by
no test coverage detected