Speech as a package #416
7 changed files with 11 additions and 10 deletions
|
@ -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 = () => {
|
||||
|
|
|
@ -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
|
||||
|
|
2
index.js
2
index.js
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
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue