Files
hiveops-aria/frontend/entrypoint.sh
T
johannes fe9a252dcd
CD - Develop / build-and-deploy (push) Failing after 54s
feat(aria): add Svelte SPA frontend and threat events API
- frontend/: full aria.bcos.dev SPA (port 5187) with Dashboard, Threat Events,
  and IOC Management views; Phase 2-3 nav items disabled as placeholders
- ThreatEventController: GET /api/aria/events (paginated, severity/device filter)
  and GET /api/aria/stats (total/critical/high/activeIoc counts)
- Deployed to bcos.dev: hiveiq-aria-frontend container + aria.bcos.dev NPM proxy

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-15 10:00:07 -04:00

20 lines
558 B
Bash

#!/bin/sh
set -e
# Inject runtime config from environment variables into the built SPA.
# This file is written to /app/dist/config.js and loaded by index.html
# BEFORE the Vite bundle — so window.__APP_CONFIG__ is available at startup.
#
# Add new config values here and in src/lib/api.ts Window interface.
cat > /app/dist/config.js <<EOF
window.__APP_CONFIG__ = {
apiUrl: '${VITE_API_URL:-http://localhost:8080}',
authUrl: '${VITE_AUTH_URL:-http://localhost:8082}'
};
EOF
echo "config.js: apiUrl=${VITE_API_URL:-http://localhost:8080}"
exec "$@"