From f622ff99255e121fd29c4c21558198f571ff89a7 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 3 Apr 2026 14:03:52 +0000 Subject: [PATCH] fix(maintainerr): filter file types in PATH_PREFIX replacement to skip binaries Agent-Logs-Url: https://github.com/alexbelgium/hassio-addons/sessions/e0751563-06a4-4b4e-a4a7-63b2e5f66f03 Co-authored-by: alexbelgium <44178713+alexbelgium@users.noreply.github.com> --- maintainerr/rootfs/ha_entrypoint.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/maintainerr/rootfs/ha_entrypoint.sh b/maintainerr/rootfs/ha_entrypoint.sh index 36aaf20aa..0df67b9a5 100755 --- a/maintainerr/rootfs/ha_entrypoint.sh +++ b/maintainerr/rootfs/ha_entrypoint.sh @@ -79,7 +79,9 @@ if [ -n "$ingress_entry" ]; then UI_DIST_DIR="/opt/app/apps/server/dist/ui" if [ -d "$UI_DIST_DIR" ]; then echo "[Maintainerr] Setting ingress base path: $ingress_entry" - find "$UI_DIST_DIR" -type f -not -path '*/node_modules/*' \ + # Only process text-based web files (skip binary assets like images/fonts) + find "$UI_DIST_DIR" -type f \( -name '*.js' -o -name '*.mjs' -o -name '*.html' -o -name '*.css' -o -name '*.json' -o -name '*.map' \) \ + -not -path '*/node_modules/*' \ -print0 | xargs -0 sed -i "s,/__PATH_PREFIX__,${ingress_entry},g" 2>/dev/null || true fi fi