Freshness diagnostics API, UI trust notes, mission control/stats updates, and deploy scripts.

Made-with: Cursor
This commit is contained in:
defiQUG
2026-04-12 06:33:54 -07:00
parent 0972178cc5
commit 3fdb812a29
63 changed files with 5163 additions and 826 deletions

View File

@@ -22,6 +22,7 @@ VERIFY_SCRIPT="${WORKSPACE_ROOT}/scripts/verify/check-explorer-e2e.sh"
RELEASE_ID="$(date +%Y%m%d_%H%M%S)"
TMP_DIR="$(mktemp -d)"
ARCHIVE_NAME="solacescanscout-next-${RELEASE_ID}.tar"
BUILD_LOCK_DIR="${FRONTEND_ROOT}/.next-build-lock"
STATIC_SYNC_FILES=(
"index.html"
"docs.html"
@@ -35,6 +36,9 @@ STATIC_SYNC_FILES=(
)
cleanup() {
if [[ -d "$BUILD_LOCK_DIR" ]]; then
rmdir "$BUILD_LOCK_DIR" 2>/dev/null || true
fi
rm -rf "$TMP_DIR"
}
trap cleanup EXIT
@@ -82,8 +86,25 @@ echo "Frontend root: $FRONTEND_ROOT"
echo "Release: $RELEASE_ID"
echo ""
acquire_build_lock() {
local attempts=0
until mkdir "$BUILD_LOCK_DIR" 2>/dev/null; do
attempts=$((attempts + 1))
if (( attempts == 1 )); then
echo "Waiting for another frontend build to finish..."
fi
if (( attempts >= 120 )); then
echo "Timed out waiting for frontend build lock: $BUILD_LOCK_DIR" >&2
exit 1
fi
sleep 1
done
}
if [[ "${SKIP_BUILD:-0}" != "1" ]]; then
echo "== Building frontend =="
acquire_build_lock
rm -rf "${FRONTEND_ROOT}/.next"
(cd "$FRONTEND_ROOT" && npm run build)
echo ""
fi