fix(nix): use --output-style=static to bypass Nx terminal crash
Call Nx directly with --output-style=static flag instead of through npm scripts to completely bypass the pseudo terminal initialization that crashes in non-TTY environments. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.5
parent
ca51f8aca2
commit
9e8fc7c07f
+1
-1
@@ -25,7 +25,7 @@ pkgs.buildNpmPackage {
|
||||
export NX_SKIP_NX_CACHE=true
|
||||
export NX_TASKS_RUNNER_DYNAMIC_OUTPUT=false
|
||||
export NX_NATIVE=false
|
||||
npm run landing:build
|
||||
./node_modules/.bin/nx build landing --output-style=static
|
||||
runHook postBuild
|
||||
'';
|
||||
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@ pkgs.buildNpmPackage {
|
||||
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}
|
||||
./node_modules/.bin/nx build ${name} --output-style=static
|
||||
runHook postBuild
|
||||
'';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user