fixed dynamicImport config and created new build

This commit is contained in:
bill bittner 2018-03-20 12:51:35 -07:00
parent ea0f821fe9
commit d29c44973f
7 changed files with 11 additions and 10 deletions

View file

@ -1,10 +1,10 @@
import dynamicImport from 'utils/dynamicImport.js';
import React from 'react';
import { Route, Switch } from 'react-router-dom';
import AboutPage from 'pages/AboutPage';
import LoginPage from 'pages/LoginPage';
import ShowPage from 'pages/ShowPage';
import FourOhFourPage from 'containers/FourOhFourPage';
const dynamicImport = require('utils/dynamicImport.js');
const HomePage = dynamicImport('pages/HomePage'); // or use the provided local homepage
const App = () => {

View file

@ -1,4 +1,4 @@
const { componentsConfig } = require('../config/siteConfig.js');
const { componentsConfig } = require('../../config/siteConfig.js');
function getDeepestChildValue (parent, childrenKeys) {
let childKey = childrenKeys.shift(); // .shift() retrieves the first element of array and removes it from array

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -17,6 +17,7 @@ function SpeechServer () {
};
this.configureSite = (siteConfig) => {
require('./config/siteConfig.js').configure(siteConfig);
console.log(require('./config/siteConfig.js'));
this.sessionKey = siteConfig.auth.sessionKey;
this.PORT = siteConfig.details.port;
};