mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-04-06 06:06:23 +02:00
The upstream Maintainerr builds its Vite/React frontend with a __PATH_PREFIX__ placeholder that gets replaced at runtime by start.sh using the BASE_PATH env var. This sets: - React Router's basename (createBrowserRouter) - API base URL (axios calls) - EventSource URLs - Vite asset prefix Without this replacement, React Router has an empty basename and can't match the ingress URL (/api/hassio_ingress/<token>/), returning "No route matches URL". Fix: Replace __PATH_PREFIX__ in the built UI files with the HA ingress entry before starting the app. Remove nginx sub_filters (no longer needed since the UI files already reference the correct ingress-prefixed URLs). Keep the nginx rewrite rule to strip the prefix on the server side. 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>