Files
hiveops-aria/frontend/entrypoint.sh
T
johannes b0121c9f44 refactor(aria): standardize API URL — VITE_API_URL=api.bcos.dev/aria
Single VITE_API_URL replaces apiUrl+authUrl. Gateway URL for auth calls
is derived at runtime via apiUrl.replace(/\/aria$/, '').

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

13 lines
210 B
Bash

#!/bin/sh
set -e
cat > /app/dist/config.js <<EOF
window.__APP_CONFIG__ = {
apiUrl: '${VITE_API_URL:-http://localhost:8017}'
};
EOF
echo "config.js: apiUrl=${VITE_API_URL:-http://localhost:8017}"
exec "$@"