rameshreddy89 commented on issue #26319:
URL: https://github.com/apache/superset/issues/26319#issuecomment-1956495702
> @sfirke Hi, I completed refactoring all the places in the code (FE, BE)
where urls were created directly without ablity to use prefixes. Currently, we
are able to build a docker image and embed it in our solution. However, there
is one moment that needs to be solved before it can be used widely. The
variable ASSET_BASE_URL used inside the `webpack.config.js` should be set on
the building stage. I can't find a solution for avoiding this or having a
workaround. So everyone who wants to use a prefix needs to build his own docker
image.
@vadym-serdiuk is it ok if I use hard coded value in webpack.config.js and
use that hard coded path in nginx like below ?
I have tested it and it works.
webpack.config.js
------------------
publicPath: `/client/static/assets/`,
nginx.conf
-----------
location /client/ {
proxy_pass http://superset_app/;
}
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]