feat: configurable UI base path via BASE_PATH build arg #58

Merged
benvin merged 1 commits from benvin/ui-base-path into master 2026-06-26 23:50:18 +10:00

1 Commits

Author SHA1 Message Date
unkinben a68292c7e9 feat: configurable UI base path via BASE_PATH build arg
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
Allows serving the UI under a subpath (e.g. /ui) instead of root.

- Vite config reads BASE_PATH env var, sets it as the asset base
  and injects __BASE_PATH__ for runtime use
- React Router uses basename from __BASE_PATH__ for client-side routing
- Nginx config uses ${BASE_PATH} placeholder, replaced at build time
- Dockerfile accepts BASE_PATH build arg (default: /)
- Woodpecker docker pipeline passes BASE_PATH=/ui
2026-06-26 23:45:10 +10:00