huggingface/Mongoku

Unable to use a different path than /

kamzata opened this issue · 4 comments

When I run Mongoku on https://mydomain.com/ it works. When I try to set it to run on (e.g.) https://mydomain.com/mongo/ it do not work. It shows a blank page. Inspecting it I could find out that .css and .js resources are not available because it try to load it on root absolute path (https://mydomain.com/).

n1t0 commented

Indeed, you need to specify the path during the build phase using —baseHref=“/mongo”

Indeed, you need to specify the path during the build phase using —baseHref=“/mongo”

Thanks, I installed it using npm. Is there a way to set the path anyway?

Would be ideal to pass in the path though environment variables, thanks for the great work on this UI!

I'm facing the same problem. To me using npm it's not valid, because I'm using docker. It would be great to implement @ddempsey3 ideia.