Files
archy/scripts/build-production-dashboard.sh
Dorian 8366a4dbc8 Bind production dashboard build to non-demo profile
(cherry picked from commit 1320db90b65afd3e79543ca6c515a21c800a3fde)
2026-11-12 14:27:04 -05:00

20 lines
663 B
Bash
Executable File

#!/usr/bin/env bash
# Release builders use this path; Dockerfile.web and Dockerfile.backend are demo only.
set -euo pipefail
repo_root=$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)
export VITE_DEMO=0
unset VITE_DEMO_CONTENT
export DOCKER_BUILD=false
export ARCHY_SOURCE_REVISION=$(git -C "$repo_root" rev-parse HEAD)
git -C "$repo_root" diff --quiet
git -C "$repo_root" diff --cached --quiet
(
cd "$repo_root/neode-ui"
npm run build
)
python3 "$repo_root/scripts/check_production_dashboard_boundary.py" \
--repo-root "$repo_root" \
--dist "$repo_root/web/dist/neode-ui" \
--builder native-vite-production \
--source-commit "$ARCHY_SOURCE_REVISION"