Run Dev vs. Run Build for Newbies

Describe Your Question

I’m trying to use the viewer to connect to a local wado repository, but can’t seem to get the bundled code published in the dist folder to make an xhr request to anywhere.

I’ve run the server locally using yarn run dev and it connects to the server fine, but running yarn run build and copying the code from the dist folder to the web site, will not call the wado server and request a list of studies. Actually, it just sits there with a blank black page. All assets seem to be loaded without any errors in the network tab of Chrome’s Developer Tools.

I’m sure I’ve missed something obvious, but I literally cloned the repo and ran the two commands hoping to get the build output to talk to the static aws server so I would have some starting point to work from.

Any advise is greatly appreciated.

Thanks!

What steps can we follow to reproduce the bug?

  1. Clone the repository
  2. yarn install
  3. yarn run dev, and everything runs as expected
  4. yarn run build
  5. deploy code from dist folder to web root
  6. open browser and navigate to web root.

weird, try another node version, you can use tools such as nvm , try node 20