mirror of
https://github.com/kjanat/livedash-node.git
synced 2026-02-13 12:55:42 +01:00
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:
12
package.json
12
package.json
@@ -75,7 +75,7 @@
|
||||
"leaflet": "^1.9.4",
|
||||
"lucide-react": "^0.525.0",
|
||||
"motion": "^12.27.1",
|
||||
"next": "^15.5.9",
|
||||
"next": "^16.1.4",
|
||||
"next-auth": "^4.24.13",
|
||||
"next-themes": "^0.4.6",
|
||||
"node-cron": "^4.2.1",
|
||||
@@ -103,15 +103,15 @@
|
||||
"@types/node": "^24.10.9",
|
||||
"@types/node-cron": "^3.0.11",
|
||||
"@types/pg": "^8.16.0",
|
||||
"@types/react": "^19.2.8",
|
||||
"@types/react-dom": "^19.2.3",
|
||||
"@types/react": "19.2.8",
|
||||
"@types/react-dom": "19.2.3",
|
||||
"@typescript-eslint/eslint-plugin": "^8.53.1",
|
||||
"@typescript-eslint/parser": "^8.53.1",
|
||||
"@vitejs/plugin-react": "^4.7.0",
|
||||
"@vitest/coverage-v8": "^3.2.4",
|
||||
"concurrently": "^9.2.1",
|
||||
"eslint": "^8.57.0",
|
||||
"eslint-config-next": "^15.5.9",
|
||||
"eslint-config-next": "^16.1.4",
|
||||
"eslint-plugin-prettier": "^5.5.5",
|
||||
"eslint-plugin-react-hooks": "^5.2.0",
|
||||
"jest-axe": "^10.0.0",
|
||||
@@ -187,5 +187,9 @@
|
||||
"*.{md,markdown}": [
|
||||
"markdownlint-cli2 --fix"
|
||||
]
|
||||
},
|
||||
"overrides": {
|
||||
"@types/react": "19.2.8",
|
||||
"@types/react-dom": "19.2.3"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user