diff --git a/nix/mkViteApp.nix b/nix/mkViteApp.nix index 955fabd..50d71bc 100644 --- a/nix/mkViteApp.nix +++ b/nix/mkViteApp.nix @@ -28,7 +28,10 @@ pkgs.buildNpmPackage { export NX_NATIVE=false ${pkgs.lib.concatStringsSep "\n" (pkgs.lib.mapAttrsToList (k: v: "export ${k}=\"${v}\"") envVars)} # Run nx build, ignore terminal crash after successful build - ./node_modules/.bin/nx build ${name} --output-style=static || true + # Disable errexit to handle SIGABRT from Nx terminal crash + set +e + ./node_modules/.bin/nx build ${name} --output-style=static + set -e # Verify the build output exists test -d dist/apps/${name} runHook postBuild