pckage.json et prisma.schema
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
[phases.build]
|
||||
cmds = [
|
||||
"npx prisma generate",
|
||||
"npm run build",
|
||||
"mkdir -p .next/standalone/public",
|
||||
"cp -r public/* .next/standalone/public/ || true",
|
||||
@@ -7,4 +8,4 @@ cmds = [
|
||||
]
|
||||
|
||||
[phases.setup]
|
||||
nixPkgs = ["nodejs_22", "npm-9_x", "openssl"]
|
||||
nixPkgs = ["nodejs_22", "npm-9_x", "openssl"]
|
||||
9
package-lock.json
generated
9
package-lock.json
generated
@@ -22,7 +22,8 @@
|
||||
"pg": "^8.19.0",
|
||||
"prisma": "^7.4.1",
|
||||
"react": "19.2.3",
|
||||
"react-dom": "19.2.3"
|
||||
"react-dom": "19.2.3",
|
||||
"server-only": "^0.0.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@tailwindcss/postcss": "^4",
|
||||
@@ -7840,6 +7841,12 @@
|
||||
"resolved": "https://registry.npmjs.org/seq-queue/-/seq-queue-0.0.5.tgz",
|
||||
"integrity": "sha512-hr3Wtp/GZIc/6DAGPDcV4/9WoZhjrkXsi5B/07QgX8tsdc6ilr7BFM6PM6rbdAX1kFSDYeZGLipIZZKyQP0O5Q=="
|
||||
},
|
||||
"node_modules/server-only": {
|
||||
"version": "0.0.1",
|
||||
"resolved": "https://registry.npmjs.org/server-only/-/server-only-0.0.1.tgz",
|
||||
"integrity": "sha512-qepMx2JxAa5jjfzxG79yPPq+8BuFToHd1hm7kI+Z4zAq1ftQiP7HcxMhDDItrbtwVeLg/cY2JnKnrcFkmiswNA==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/set-function-length": {
|
||||
"version": "1.2.2",
|
||||
"resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz",
|
||||
|
||||
11
package.json
11
package.json
@@ -7,26 +7,23 @@
|
||||
},
|
||||
"scripts": {
|
||||
"dev": "next dev",
|
||||
"build": "npx prisma generate && cross-env NEXT_TELEMETRY_DISABLED=1 next build",
|
||||
"start": "npx prisma generate && npx prisma db push && rm -rf .next/standalone/node_modules/@prisma .next/standalone/node_modules/.prisma && node .next/standalone/server.js",
|
||||
"build": "npx prisma generate && next build",
|
||||
"start": "npx prisma db push && node .next/standalone/server.js",
|
||||
"lint": "next lint"
|
||||
},
|
||||
"dependencies": {
|
||||
"@google/genai": "^1.38.0",
|
||||
"@prisma/adapter-pg": "^7.4.1",
|
||||
"@prisma/client": "^7.4.1",
|
||||
"@types/bcryptjs": "^2.4.6",
|
||||
"@types/pg": "^8.16.0",
|
||||
"bcryptjs": "^3.0.3",
|
||||
"cross-env": "^10.1.0",
|
||||
"dotenv": "^17.3.1",
|
||||
"lucide-react": "^0.563.0",
|
||||
"next": "16.1.6",
|
||||
"next-auth": "^5.0.0-beta.30",
|
||||
"pg": "^8.19.0",
|
||||
"prisma": "^7.4.1",
|
||||
"react": "19.2.3",
|
||||
"react-dom": "19.2.3"
|
||||
"react-dom": "19.2.3",
|
||||
"server-only": "^0.0.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@tailwindcss/postcss": "^4",
|
||||
|
||||
@@ -24,6 +24,7 @@ return globalForPrisma.prisma;
|
||||
export default getDB;
|
||||
*/
|
||||
|
||||
import 'server-only';
|
||||
import { PrismaClient } from '@prisma/client';
|
||||
|
||||
const globalForPrisma = globalThis as unknown as {
|
||||
|
||||
Reference in New Issue
Block a user