fix(nix): handle Nx terminal crash for Vite apps

Add fallback check to continue if build output exists even when
Nx crashes after successful build completion.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
maulanasdqn
2026-01-21 18:14:52 +07:00
co-authored by Claude Opus 4.5
parent b2de22b0ef
commit e5dc784301
+2 -1
View File
@@ -27,7 +27,8 @@ 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)}
./node_modules/.bin/nx build ${name} --output-style=static
# Run nx build, ignore terminal crash after successful build
./node_modules/.bin/nx build ${name} --output-style=static || test -d dist/apps/${name}
runHook postBuild
'';