You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I haven't found a way to use a subpath for the UI externally (without rebuilding the cloudify-stage/).
It would be great if you could include an option to set the baseUrl by, for example, reading environmental variable. For example in Vue.js: https://cli.vuejs.org/config/#publicpath, or with react https://medium.com/@svinkle/how-to-deploy-a-react-app-to-a-subdirectory-f694d46427c1. However these options will be only valid when re-building the application.
Also, in angular that is possible dynamically by using the localtion.pathname of the requests. It is something like:
export function getBaseLocation() {
let paths: string[] = location.pathname.split('/').splice(1, 1);
let basePath: string = (paths && !ROUTES_PATH.includes(paths[0]) && paths[0]) || ''; // Default: ''
return '/' + basePath;
}
@aitorhh
Thanks for reporting the issue. As far as I know we are not planning any changes in terms of adding support for custom base URL. If you are interested in it, could you please create a Pull Request with desired changes and let me know?
For the future - we are not using GitHub for issue tracking, please use our Slack channel: https://cloudify.co/slack/ to ask for support or report issues.
I haven't found a way to use a subpath for the UI externally (without rebuilding the cloudify-stage/).
It would be great if you could include an option to set the
baseUrl
by, for example, reading environmental variable. For example in Vue.js: https://cli.vuejs.org/config/#publicpath, or with reacthttps://medium.com/@svinkle/how-to-deploy-a-react-app-to-a-subdirectory-f694d46427c1
. However these options will be only valid when re-building the application.Also, in angular that is possible dynamically by using the
localtion.pathname
of the requests. It is something like:And declaring in the
providers
:{
provide: APP_BASE_HREF,
useFactory: getBaseLocation
}
The text was updated successfully, but these errors were encountered: