Make public path configurable via an environment variable #203
Make public path configurable via an environment variable #203
Conversation
@feedmeapples should be a straightforward one hopefully - can you test and merge if it looks good? @jeromefroe for your usecase, have you verified that our |
@sw-yx this PR is going to need more work. I've done more testing and it looks like the Vue client needs to be updated as well to use the appropriate root path. I've tried updating the |
just checking in - hows it going? |
Hey @sw-yx! I think this PR is getting close, I've updated both the server-side and client-side to support being deployed under a subpath, but I've noticed that links will occasionally be redirected to URL's which duplicate the subpath. For example, if the subpath is |
this might be a base Url issue. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base @feedmeapples any idea? |
looking into it to help and make it work. sry for the delay |
any news on this pull request ? definitely waiting for it to have a proper temporal dashboard on my prod environment. Thanks ! |
no updates yet - i dont mind this in principle, just want to make sure @feedmeapples is fine with the code as he's responsible for maintaining going fwd |
i need to do something with the links, in the current state they end up duplicating the subpath and breaking the app. Looking into this again rn The links are generated using vue-router's |
Found what was causing subpath duplication There was a code in App.vue -> globalClick that was intercepting link clicks. This code was messing the vue-router basePath behavior and adding additional subpath everytime links were clicked. Based on the code comment, this code was needed for mocha tests only. Since we switched to Removing this code also fixes |
This should be good to check in with one more approve 👍 |
@jeromefroe this feature seems had an issue in production build. I've merged changes to address this #339 |
Hi Temporal team! This PR addresses #179 by making the root path that the app is served under configurable via the
TEMPORAL_WEB_ROOT_PATH
environment variable. This approach is based on the webpack documentation for thepublicPath
configuration option. Thanks!upd: