-
Notifications
You must be signed in to change notification settings - Fork 7.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add support for baseUrl #2609
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@NimJay Edit: My bad, I confirm recommendations are broken. I will look for a solution. |
I updated the code to fix Ad and Recommendation templates. I had to pass them the global context. I'm not a fan of that solution, however, it works well. |
Signed-off-by: Zadkiel AHARONIAN <[email protected]>
Signed-off-by: Zadkiel AHARONIAN <[email protected]>
Background
I want to host this microservice demo frontend on a subpath (
X.X.X.X/online-boutique/
). I made my reverse proxy rewrite the url by removing/online-boutique
from the paths it sees. However, the frontend html pages uses absolute urls which cannot be solved with the reverse proxy.Fixes
Change Summary
Additional Notes
Image is available at
docker.io/zadki3l/microservice-demo-frontend:v0.11.0-dev.4
Testing Procedure
Deploy app with
BASE_URL=/online-boutique
environment variable.Kustomize example
Deploy an ingress with
/online-boutique
prefix.Validate that everything shows correctly
Related PRs or Issues