Files
The-transit-Project/admin_ui/docker-entrypoint.sh
T
Sven laptop e5e6611cf5 auth url fix
Co-authored-by: Copilot <copilot@github.com>
2026-05-06 12:21:35 +02:00

13 lines
295 B
Bash

#!/bin/sh
set -e
# Create runtime env-config.js for the static app
cat > /usr/share/nginx/html/env-config.js <<EOF
window.__ENV__ = {
VITE_AUTH_API: "${VITE_AUTH_API:-http://localhost:5000}",
VITE_TRANSIT_API: "${VITE_TRANSIT_API:-http://localhost:5001}"
}
EOF
exec nginx -g 'daemon off;'