added api variable

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
Sven laptop
2026-05-06 14:30:11 +02:00
parent d8caf51faf
commit a091ef9c37
4 changed files with 6 additions and 11 deletions
Regular → Executable
+2 -3
View File
@@ -1,11 +1,10 @@
#!/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}"
AUTH_API: "${AUTH_API:-http://localhost:5000}",
TRANSIT_API: "${TRANSIT_API:-http://localhost:5001}"
}
EOF