feat: add fullstack deployment and oracle app

This commit is contained in:
2026-04-28 13:35:53 +08:00
commit 57fbcf16d4
42 changed files with 7566 additions and 0 deletions

17
web/docker/40-xly-env.sh Normal file
View File

@@ -0,0 +1,17 @@
#!/bin/sh
set -eu
ENV_FILE="/usr/share/nginx/html/.env"
OUTPUT_FILE="/usr/share/nginx/html/env.js"
api_base_url=""
if [ -f "$ENV_FILE" ]; then
api_base_url="$(grep '^VITE_API_BASE_URL=' "$ENV_FILE" | tail -n 1 | cut -d '=' -f 2- || true)"
fi
cat >"$OUTPUT_FILE" <<EOF
window.__XLY_CONFIG__ = {
VITE_API_BASE_URL: "${api_base_url}"
};
EOF