-
-
Notifications
You must be signed in to change notification settings - Fork 3.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
[Bug] Hosting with a custom baseUrl does not work #4135
Comments
Could you provide the steps you followed to reproduce the issue? |
I would also like to do this, it would be interesting if there was a docker image available that supports this I didn't try to compile a version following the tutorial, as I'm not very familiar with node/react, I only work with Dart and AngularDart on a daily basis |
For building a Docker image:
For running with npx: $env:PUBLIC_URL="/ohif/" I know that I set the variables twice, I just wanted to make sure not to miss something. Hope this helps at least a little bit. |
Describe the Bug
Custom URL - non root BaseUrl does not work. Files other then index.html can only found in the root path.
I tried a bunch of options, and checked if the past issue #2769 was resolved and it seems that in the code it is.
I do not seem to find the issue.
Steps to Reproduce
I based my tries on this guide: https://docs.ohif.org/deployment/custom-url-access/
First I tried building a Docker image, which is a bit different from this guide, you have to add the env to the dockerfile. it resulted in a container that will host all the files. The index will be available from the custom url, all other js files only from the root directory.
I then tried to build for production with pretty much the exact same commands as the guide, however I am on windows,so the guide is not accurate
The current behavior
hosting under a custom URL results in a blank page, the webbrowser is unable to load the js files
The expected behavior
I want to be able to host ohif under /ohif, the code should be writte in a way where a different baseUrl should not matter at all.
OS
Windows 10
Node version
18.18.2
Browser
Firefox 126.0
The text was updated successfully, but these errors were encountered: