diff --git a/modules/lamassu-lnbits.nix b/modules/lamassu-lnbits.nix index 996841e..67795bc 100644 --- a/modules/lamassu-lnbits.nix +++ b/modules/lamassu-lnbits.nix @@ -317,11 +317,10 @@ in [ "$NEEDS_BUILD" = "0" ] && exit 0 - # Install and build + # Install dependencies (without running install scripts) pnpm install --no-frozen-lockfile --ignore-scripts - pnpm rebuild || true - # Rebuild problematic native modules + # Build native modules explicitly (pnpm rebuild has signal handling issues) for module in node-expat iconv; do path=$(find node_modules/.pnpm -name "$module" -type d -path "*/$module" 2>/dev/null | head -1) [ -n "$path" ] && [ -f "$path/binding.gyp" ] && (cd "$path" && npx node-gyp rebuild) || true