From 484a6cbb38fa3fe0162326611ecb2f08becb2bae Mon Sep 17 00:00:00 2001 From: Mamadou Sall Date: Sun, 24 Aug 2025 23:07:29 +0200 Subject: [PATCH] fix nixpacks --- nixpacks.toml | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) 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"