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:
@@ -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 配置账号;勿在源码写真实口令
|
||||
|
||||
Reference in New Issue
Block a user