fix: lazy-load Prisma client to fix build-time URL parsing

- Make Prisma client initialization lazy via Proxy
- Defer database-pool import until runtime
- Add guard for empty DATABASE_URL
- Build now succeeds with Next.js 16.1.4
This commit is contained in:
2026-01-20 07:34:30 +01:00
parent 5bfd762e55
commit 7932fe7386
6 changed files with 91 additions and 177 deletions

9
.opencode/opencode.jsonc Normal file
View File

@@ -0,0 +1,9 @@
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"next-devtools": {
"command": ["npx", "-y", "next-devtools-mcp@latest"],
"type": "local",
},
},
}