Try to find ideal defaults

This commit is contained in:
dannyrb 2019-04-29 15:06:17 -04:00
parent a5146e6f38
commit 70f83f131a
3 changed files with 4 additions and 9 deletions

View File

@ -14,12 +14,7 @@
YARN_FLAGS = "--no-ignore-optional --pure-lockfile"
# COMMENT: This a rule for Single Page Applications
# [[redirects]]
# from = "/*"
# to = "/index.html"
# status = 200
[[redirects]]
from = "/*"
to ="/demo/index.html"
to = "/index.html"
status = 200

View File

@ -1,8 +1,5 @@
window.config = {
// default: '/'
routerBasename: '/demo',
// default: '/'
relativeWebWorkerScriptsPath: '',
servers: {
dicomWeb: [
{

View File

@ -226,9 +226,12 @@ class App extends Component {
oidc: PropTypes.array,
userManager: PropTypes.object,
location: PropTypes.object,
whiteLabelling: PropTypes.object,
}
static defaultProps = {
routerBasename: '/',
relativeWebWorkerScriptsPath: '',
whiteLabelling: {},
}