mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-04-05 21:56:27 +02:00
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>
This commit is contained in:
committed by
GitHub
parent
8631d9213c
commit
f622ff9925
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user