fixed location of SSR files

This commit is contained in:
bill bittner 2018-04-18 12:11:25 -07:00
parent 8bf3a0753e
commit 8994b3b9c5
11 changed files with 11 additions and 12 deletions

View file

@ -2,5 +2,4 @@ node_modules/
exports/
index.js
test/
server/render/handlePageRender.js
server/render/handleShowRender.js
server/render/build

View file

@ -9,8 +9,8 @@
"lint": "eslint .",
"fix": "eslint . --fix",
"precommit": "eslint .",
"build": "babel server/render/src -d server/render",
"build:watch": "babel server/render/src -w -d server/render"
"build": "babel server/render/src -d server/render/build",
"build:watch": "babel server/render/src -w -d server/render/build"
},
"repository": {

View file

@ -12,7 +12,7 @@ var _reactRouterDom = require("react-router-dom");
var _spee = require("spee.ch-components");
var _renderFullPage = _interopRequireDefault(require("../../helpers/renderFullPage.js"));
var _renderFullPage = _interopRequireDefault(require("../renderFullPage.js"));
var _reactHelmet = _interopRequireDefault(require("react-helmet"));

View file

@ -10,7 +10,7 @@ var _reactRedux = require("react-redux");
var _reactRouterDom = require("react-router-dom");
var _renderFullPage = _interopRequireDefault(require("../../helpers/renderFullPage"));
var _renderFullPage = _interopRequireDefault(require("../renderFullPage"));
var _reduxSaga = _interopRequireDefault(require("redux-saga"));

View file

@ -11,7 +11,7 @@ import { Reducers, GAListener, App } from 'spee.ch-components';
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 '../../helpers/renderFullPage.js';
import renderFullPage from '../renderFullPage.js';
import Helmet from 'react-helmet';
const siteConfig = require('../../../config/siteConfig.js');

View file

@ -3,7 +3,7 @@ import { renderToString } from 'react-dom/server';
import { createStore, applyMiddleware } from 'redux';
import { Provider } from 'react-redux';
import { StaticRouter } from 'react-router-dom';
import renderFullPage from '../../helpers/renderFullPage';
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';

View file

@ -1,7 +1,7 @@
const { sendGAServeEvent } = require('../../helpers/googleAnalytics');
const { determineResponseType, logRequestData, getClaimIdAndServeAsset } = require('../../helpers/serveHelpers.js');
const lbryUri = require('../../helpers/lbryUri.js');
const handleShowRender = require('../../render/handleShowRender.js');
const handleShowRender = require('../../render/build/handleShowRender.js');
const SERVE = 'SERVE';
/*

View file

@ -6,7 +6,7 @@ const {
getClaimIdAndServeAsset,
} = require('../../helpers/serveHelpers.js');
const lbryUri = require('../../helpers/lbryUri.js');
const handleShowRender = require('../../render/handleShowRender.js');
const handleShowRender = require('../../render/build/handleShowRender.js');
const SERVE = 'SERVE';

View file

@ -1,4 +1,4 @@
const handlePageRender = require('../../render/handlePageRender.js');
const handlePageRender = require('../../render/build/handlePageRender.js');
const sendReactApp = (req, res) => {
handlePageRender(req, res);

View file

@ -1,4 +1,4 @@
const handlePageRender = require('../../render/handlePageRender.js');
const handlePageRender = require('../../render/build/handlePageRender.js');
const sendReactApp = (req, res) => {
handlePageRender(req, res);