The Wails request router included the full request body in its error
log entries, and the HTTP app creation handler logged the whole request
struct on failure. Log only the route, method and error instead,
matching the existing behavior of the /api/mnemonic handler, and log
only the route and method for requests in the desktop frontend.
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
* feat: add base path to front end
- add docker build arg to set base path frontend is served under
- set vite.config.ts base value based on docker build arg
- update http variant request function to inject base path during calls to /api and /images
- update how static assets are loaded from public folder to inject base path during vite build
To use a base path build the docker image with --build-arg BASE_PATH=/hub/.
All assets and api calls from the frontend will use that base path as prefix.
The backend service is not using the base path, when using a proxy the base path has to be stripped.
* chore: simplify base path usage and add extra documentation
* chore: add extra documentation
---------
Co-authored-by: 8de2fdb0 <89734465+8de2fdb0@users.noreply.github.com>