From ca51f8aca2270f3e95aee34c06299695cd9f3a41 Mon Sep 17 00:00:00 2001 From: maulanasdqn Date: Wed, 21 Jan 2026 16:25:27 +0700 Subject: [PATCH] fix(nix): disable Nx native terminal to prevent build crash MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add NX_TASKS_RUNNER_DYNAMIC_OUTPUT=false and NX_NATIVE=false to completely disable Nx's Rust-based terminal handling that crashes in non-TTY build environments. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- nix/landing.nix | 2 ++ nix/mkViteApp.nix | 2 ++ 2 files changed, 4 insertions(+) diff --git a/nix/landing.nix b/nix/landing.nix index fc5aec1..13174e8 100644 --- a/nix/landing.nix +++ b/nix/landing.nix @@ -23,6 +23,8 @@ pkgs.buildNpmPackage { export NO_COLOR=1 export TERM=dumb export NX_SKIP_NX_CACHE=true + export NX_TASKS_RUNNER_DYNAMIC_OUTPUT=false + export NX_NATIVE=false npm run landing:build runHook postBuild ''; diff --git a/nix/mkViteApp.nix b/nix/mkViteApp.nix index ba5be0f..0da24e8 100644 --- a/nix/mkViteApp.nix +++ b/nix/mkViteApp.nix @@ -24,6 +24,8 @@ pkgs.buildNpmPackage { export NO_COLOR=1 export TERM=dumb export NX_SKIP_NX_CACHE=true + export NX_TASKS_RUNNER_DYNAMIC_OUTPUT=false + export NX_NATIVE=false ${pkgs.lib.concatStringsSep "\n" (pkgs.lib.mapAttrsToList (k: v: "export ${k}=\"${v}\"") envVars)} npm run ${buildScript} runHook postBuild