diff --git a/server/render/build/handlePageRender.js b/server/render/build/handlePageRender.js index 3ae51f13..2b3c6ac8 100644 --- a/server/render/build/handlePageRender.js +++ b/server/render/build/handlePageRender.js @@ -18,15 +18,7 @@ var _reactHelmet = _interopRequireDefault(require("react-helmet")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } -/* - ^ note: to do this right, maybe - these should be passed in from the implementation (www.spee.ch) itself, - so that there are no conflicts between the SSR here and - the bundle sent to the server? - there might also be issues if this package uses a different version of spee.ch-components than www.spee.ch does? -*/ -var siteConfig = require('../../../config/siteConfig.js'); // const viewsConfig = require('../../../config/viewsConfig.js'); - +var siteConfig = require('../../../config/siteConfig.js'); module.exports = function (req, res) { var context = {}; // customize the reducer by passing in intial state configs diff --git a/server/render/build/handleShowRender.js b/server/render/build/handleShowRender.js index 45a6e308..93f378e9 100644 --- a/server/render/build/handleShowRender.js +++ b/server/render/build/handleShowRender.js @@ -22,13 +22,6 @@ var _reactHelmet = _interopRequireDefault(require("react-helmet")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } -/* - ^ note: to do this right, maybe - these should be passed in from the implementation (www.spee.ch) itself, - so that there are no conflicts between the SSR here and - the bundle sent to the server? - there might also be issues if this package uses a different version of spee.ch-components than www.spee.ch does? -*/ var siteConfig = require('../../../config/siteConfig.js'); // const viewsConfig = require('../../../config/viewsConfig.js'); diff --git a/server/render/src/handlePageRender.jsx b/server/render/src/handlePageRender.jsx index 01f81a73..bb5290a6 100644 --- a/server/render/src/handlePageRender.jsx +++ b/server/render/src/handlePageRender.jsx @@ -4,18 +4,10 @@ import { createStore } from 'redux'; import { Provider } from 'react-redux'; import { StaticRouter } from 'react-router-dom'; import { Reducers, GAListener, App } from 'spee.ch-components'; -/* - ^ note: to do this right, maybe - these should be passed in from the implementation (www.spee.ch) itself, - so that there are no conflicts between the SSR here and - the bundle sent to the server? - there might also be issues if this package uses a different version of spee.ch-components than www.spee.ch does? -*/ import renderFullPage from '../renderFullPage.js'; import Helmet from 'react-helmet'; const siteConfig = require('../../../config/siteConfig.js'); -// const viewsConfig = require('../../../config/viewsConfig.js'); module.exports = (req, res) => { let context = {}; diff --git a/server/render/src/handleShowRender.jsx b/server/render/src/handleShowRender.jsx index 243dd28a..ab164c57 100644 --- a/server/render/src/handleShowRender.jsx +++ b/server/render/src/handleShowRender.jsx @@ -7,13 +7,6 @@ import renderFullPage from '../renderFullPage'; import createSagaMiddleware from 'redux-saga'; import { call } from 'redux-saga/effects'; import { Reducers, GAListener, App, Sagas, Actions } from 'spee.ch-components'; -/* - ^ note: to do this right, maybe - these should be passed in from the implementation (www.spee.ch) itself, - so that there are no conflicts between the SSR here and - the bundle sent to the server? - there might also be issues if this package uses a different version of spee.ch-components than www.spee.ch does? -*/ import Helmet from 'react-helmet'; const siteConfig = require('../../../config/siteConfig.js');