adding more details at the getting-started readme and changing react index to use .js config files
This commit is contained in:
1 parent
610aeb1b9a
commit
b0d06baf29
3 files changed
+10
-12
No files matched your search
+5
-5
@@ -175,14 +175,14 @@ props.whiteLabelling = {
|
||||
//
|
||||
// If you change the JSON config, you need to re-run the command!
|
||||
const configString = process.env && process.env && process.env.REACT_APP_CONFIG;
|
||||
|
||||
if (configString) {
|
||||
const configJSON = JSON.parse(configString);
|
||||
if (configJSON.servers) {
|
||||
props.servers = configJSON.servers;
|
||||
if (configString.servers) {
|
||||
props.servers = configString.servers;
|
||||
}
|
||||
|
||||
if (configJSON.oidc) {
|
||||
props.oidc = configJSON.oidc;
|
||||
if (configString.oidc) {
|
||||
props.oidc = configString.oidc;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import qs from 'query-string';
|
||||
import qs from 'querystring';
|
||||
import Viewer from '../connectedComponents/Viewer';
|
||||
import OHIF from 'ohif-core';
|
||||
|
||||
|
||||
Reference in new issue
Block a user