This commit is contained in:
6
admin/nixpacks.toml
Normal file
6
admin/nixpacks.toml
Normal file
@@ -0,0 +1,6 @@
|
||||
[phases.build]
|
||||
cmds = ["npm install", "npx prisma generate", "npm run build"]
|
||||
|
||||
[phases.start]
|
||||
# Exécute prisma db push avant de lancer l'application pour synchroniser le schéma
|
||||
cmds = ["npx prisma db push --accept-data-loss", "npm start"]
|
||||
@@ -4,8 +4,8 @@
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "next dev",
|
||||
"build": "next build",
|
||||
"start": "./node_modules/.bin/next start",
|
||||
"build": "prisma generate && next build",
|
||||
"start": "next start -p 3000",
|
||||
"lint": "eslint"
|
||||
},
|
||||
"dependencies": {
|
||||
|
||||
Reference in New Issue
Block a user