fix: improve HyperDX API build process in ClickHouse scripts

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
MickLesk
2026-05-06 10:07:08 +02:00
parent d1bd9de24a
commit e287504ab9
2 changed files with 16 additions and 2 deletions

View File

@@ -207,7 +207,14 @@ EOF
msg_info "Building HyperDX"
$STD yarn install
$STD yarn workspace @hyperdx/common-utils run build
$STD yarn workspace @hyperdx/api run build
rm -rf /opt/clickstack/packages/api/build
yarn workspace @hyperdx/api exec tsc >>"$(get_active_logfile)" 2>&1 || true
$STD yarn workspace @hyperdx/api exec tsc-alias
cp -r /opt/clickstack/packages/api/src/opamp/proto /opt/clickstack/packages/api/build/opamp/ 2>/dev/null || true
[[ -f /opt/clickstack/packages/api/build/index.js ]] || {
msg_error "HyperDX API build failed: build/index.js not found"
exit 1
}
$STD yarn workspace @hyperdx/app run build
msg_ok "Built HyperDX"