b0121c9f44
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>
13 lines
210 B
Bash
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 "$@"
|