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