From 8e2b090eaf5150830788509c6bfcd09f7b4aaca3 Mon Sep 17 00:00:00 2001 From: Shawn Date: Sat, 13 Jun 2026 11:31:39 -0400 Subject: [PATCH] fix(server): prioritize pi-multifx-pedal-ui/dist over src/web/ui-dist for Helix UX Reordered UI_DIST_DIR candidates so pi-multifx-pedal-ui/dist (the correct Helix-style pedal UI) is checked first. The old priority put src/web/ui-dist first, which allowed wrong-build deploys to mask the real UI. Also add UI_DIST_DIR env var to systemd service for explicit path. --- src/web/server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/web/server.py b/src/web/server.py index 269bc29..930b60e 100644 --- a/src/web/server.py +++ b/src/web/server.py @@ -56,11 +56,11 @@ _ui_dist_env = os.environ.get("UI_DIST_DIR") if _ui_dist_env: UI_DIST_DIR = Path(_ui_dist_env).resolve() else: - # Look relative to backend package first, then common project layouts + # Priority order: pi-multifx-pedal-ui (Helix style) -> src/web/ui-dist (legacy) -> frontend-react (deprecated) _candidates = [ + Path(__file__).resolve().parent.parent.parent.parent / "pi-multifx-pedal-ui" / "dist", Path(__file__).resolve().parent / "ui-dist", Path(__file__).resolve().parent.parent.parent / "frontend-react" / "dist", - Path(__file__).resolve().parent.parent.parent.parent / "pi-multifx-pedal-ui" / "dist", ] UI_DIST_DIR = next((d for d in _candidates if d.is_dir()), None)