diff --git a/nixpacks.toml b/nixpacks.toml index 6441467..875ea6e 100644 --- a/nixpacks.toml +++ b/nixpacks.toml @@ -1,17 +1,11 @@ -# nixpacks.toml +[phases.setup] +nixPkgs = ["nodejs", "npm"] + +[phases.install] +cmds = ["npm install"] [phases.build] -# Indique à Nixpacks d'installer les dépendances et de builder Next.js -cmds = [ - "npm install", - "npm run build" -] +cmds = ["npm run build"] -[phases.start] -# Commande de démarrage en production +[start] cmd = "npm run start" - -[variables] -# Port par défaut attendu par Coolify -PORT = "3000" -NODE_ENV = "production"