Describe Your Question
I am completely new to OHIF and OHIF deployment.
My goal is to have a working OHIF-viewer at the URL /ohif using the Django web framework.
At this point I am playing around with localhost. The default DICOM endpoints are being used. Everything is working as expected on localhost, that is I can see the standard Study List at localhost/ohif.
Here is my package.json:
"build:django:local": "cross-env NODE_ENV=production APP_CONFIG=config/myConfig.js PUBLIC_URL=/static/viewer/ yarn run build",
"build:django:production": "cross-env NODE_ENV=production APP_CONFIG=config/myConfig.js PUBLIC_URL=https://storage.googleapis.com/prod_helsec_bucket/viewer/ yarn run build",
myConfig.js is equal to default.js except this line:
routerBasename: '/ohif',
When i deploy with the production build I am getting this error at /ohif:
I think this is the reason that i just get a black screen when trying to view a Study Instance with the basic Viewer.
Note that the static OHIF files are served from /static/viewer when running a local django server (that is, the same domain as OHIF index.html). In production however, the OHIF static files are in a Google storage bucket at /prod_helsec_bucket/viewer/ - so a different domain that the OHIF index.html. Can this cause the issue?
To my understanding it is possible to have the OHIF static files at a different domain, as long as you provide the PUBLIC_URL argument in package.json, as well as routerBasename: ‘/ohif’ in the config.js-file. I still cant get it to work, however. Any help is greatly appreciated.
