Restore shared CSS/JS static mounts for standalone deploy.

Embed UI looked unstyled because hub_bridge no longer registers lib/common/static.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-08-14 18:00:56 +08:00
parent 82ba8d19a6
commit d9de3fe784
2 changed files with 70 additions and 0 deletions
+2
View File
@@ -233,8 +233,10 @@ def resolve_path(path_value):
app = Flask(__name__)
app.secret_key = os.getenv("FLASK_SECRET_KEY") or os.urandom(32)
from lib.instance.instance_embed_lib import attach_embed_templates, redirect_to_embed_shell_if_enabled
from lib.instance.instance_static_lib import install_common_static
attach_embed_templates(app, _REPO_ROOT)
install_common_static(app, _REPO_ROOT)
# ====================== 登录配置 ======================
# 独立部署须在 .env 配置账号;勿在源码写真实口令