restaurant-admin-web/docker/40-runtime-config.sh
2026-03-08 16:06:29 -06:00

10 lines
252 B
Bash
Executable File

#!/bin/sh
set -eu
cat > /usr/share/nginx/html/runtime-config.js <<EOT
window.__APP_CONFIG__ = {
API_BASE_URL: "${API_BASE_URL:-http://localhost:8080}",
THALOS_AUTH_BASE_URL: "${THALOS_AUTH_BASE_URL:-${API_BASE_URL:-http://localhost:8080}}"
};
EOT