fix(ui): rewrite all asset paths in index.html with ROOT_PATH (#99)#100
Merged
fix(ui): rewrite all asset paths in index.html with ROOT_PATH (#99)#100
Conversation
added 4 commits
April 8, 2026 06:05
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #99 — The built React
index.htmlhad hardcoded/ui/...asset paths (favicon, JS bundles, CSS, manifest). Behind a reverse proxy with a prefix like/ep-api, the browser requested/ui/static/js/main.xxx.jsbut the resource was only available at/ep-api/ui/static/js/main.xxx.js.Changes
entrypoint.sh: Replaced the specificconfig.jssed rewrite with a generic one that rewrites all"/ui/references to"${ROOT_PATH}/ui/in the builtindex.html.Result
All asset paths in
index.htmlnow include theROOT_PATHprefix:Test plan
curl localhost:8002/ep-api/ui/→ 200curl localhost:8002/ep-api/ui/static/js/main.20709373.js→ 200curl localhost:8002/ep-api/ui/static/css/main.4159b21f.css→ 200curl localhost:8002/ep-api/ui/favicon.ico→ 200curl localhost:8002/ep-api/health→ 200