From 775a91152cace3118150d6c7a63c3b68f7ad7439 Mon Sep 17 00:00:00 2001 From: dannyrb Date: Mon, 29 Apr 2019 13:19:17 -0400 Subject: [PATCH] Specify our netlify config --- .env.production | 9 +++++++++ public/config/netlify.js | 20 ++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 .env.production create mode 100644 public/config/netlify.js diff --git a/.env.production b/.env.production new file mode 100644 index 000000000..f00ed441e --- /dev/null +++ b/.env.production @@ -0,0 +1,9 @@ +## +# PRODUCTION: Netlify +# +# We're using this to set variables for our Netlify deploy. +# Please feel free to delete or modify this file for your own production +# environment. Be careful not to commit anything sensitive to source control. +# + +REACT_APP_CONFIG=config/netlify.js diff --git a/public/config/netlify.js b/public/config/netlify.js new file mode 100644 index 000000000..3b7098d2d --- /dev/null +++ b/public/config/netlify.js @@ -0,0 +1,20 @@ +window.config = { + routerBasename: '/demo', + rootUrl: '/demo', + servers: { + dicomWeb: [ + { + name: 'DCM4CHEE', + wadoUriRoot: 'https://server.dcmjs.org/dcm4chee-arc/aets/DCM4CHEE/wado', + qidoRoot: 'https://server.dcmjs.org/dcm4chee-arc/aets/DCM4CHEE/rs', + wadoRoot: 'https://server.dcmjs.org/dcm4chee-arc/aets/DCM4CHEE/rs', + qidoSupportsIncludeField: true, + imageRendering: 'wadors', + thumbnailRendering: 'wadors', + requestOptions: { + requestFromBrowser: true, + }, + }, + ], + }, +}