fixed location of SSR files
This commit is contained in:
parent
8bf3a0753e
commit
8994b3b9c5
11 changed files with 11 additions and 12 deletions
|
@ -2,5 +2,4 @@ node_modules/
|
|||
exports/
|
||||
index.js
|
||||
test/
|
||||
server/render/handlePageRender.js
|
||||
server/render/handleShowRender.js
|
||||
server/render/build
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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"));
|
||||
|
|
@ -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"));
|
||||
|
|
@ -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');
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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';
|
||||
|
||||
/*
|
||||
|
|
|
@ -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';
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
const handlePageRender = require('../../render/handlePageRender.js');
|
||||
const handlePageRender = require('../../render/build/handlePageRender.js');
|
||||
|
||||
const sendReactApp = (req, res) => {
|
||||
handlePageRender(req, res);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
const handlePageRender = require('../../render/handlePageRender.js');
|
||||
const handlePageRender = require('../../render/build/handlePageRender.js');
|
||||
|
||||
const sendReactApp = (req, res) => {
|
||||
handlePageRender(req, res);
|
||||
|
|
Loading…
Reference in a new issue