OHIF / Viewers

OHIF zero-footprint DICOM viewer and oncology specific Lesion Tracker, plus shared extension packages
https://docs.ohif.org/
MIT License
3.3k stars 3.34k forks source link

Static deployment of V3 does not work for DicomJson #3367

Closed bluesteel23 closed 1 year ago

bluesteel23 commented 1 year ago

Describe the Bug

Have pulled data from V3 stable branch. When run locally, the dicomjson works well and displays iamges by using following url pattern : http://localhost:3000/viewer/dicomjson?url=https://ohif-dicom-json-example.s3.amazonaws.com/LIDC-IDRI-0001.json. After that we've built the code for production, copied the content of 'dist' folder to static website. This is done by using Azure blob storage and copying files to '$web' container. When navigated to the static website URL, the initial sample data loads. However when called for the viewer/dicomjson , it fails with error 'Content not found'. Please advise.

screenshots

sedghi commented 1 year ago

Most likely you need to setup a fallback from 404 to index.html, read the end of https://docs.ohif.org/configuration/dataSources/dicom-json