fix nixpacks
This commit is contained in:
@@ -1,17 +1,11 @@
|
|||||||
# nixpacks.toml
|
[phases.setup]
|
||||||
|
nixPkgs = ["nodejs", "npm"]
|
||||||
|
|
||||||
|
[phases.install]
|
||||||
|
cmds = ["npm install"]
|
||||||
|
|
||||||
[phases.build]
|
[phases.build]
|
||||||
# Indique à Nixpacks d'installer les dépendances et de builder Next.js
|
cmds = ["npm run build"]
|
||||||
cmds = [
|
|
||||||
"npm install",
|
|
||||||
"npm run build"
|
|
||||||
]
|
|
||||||
|
|
||||||
[phases.start]
|
[start]
|
||||||
# Commande de démarrage en production
|
|
||||||
cmd = "npm run start"
|
cmd = "npm run start"
|
||||||
|
|
||||||
[variables]
|
|
||||||
# Port par défaut attendu par Coolify
|
|
||||||
PORT = "3000"
|
|
||||||
NODE_ENV = "production"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user