Introduced Server Side Rendering for Cloud Pages based on React

This commit is contained in:
tmshv committed 2017-05-20 23:24:18 +03:00
1 parent 569b849457
commit 1d6772eef3
17 files changed
+456 -61

No files matched your search

+4
View File
@@ -19,6 +19,8 @@ import {redirect} from './routes/redirect'
import {services as serviceKeys, authChecker} from './core/service'
import handlebars from 'handlebars'
const error = require('./middlewares/error')
const dirPublic = path.join(__dirname, '../public')
const dirTemplates = path.join(__dirname, 'templates')
@@ -47,6 +49,8 @@ export default function (store) {
app.use($(redirect(redirectionTable)))
app.use($(helmet()))
app.use(queryObject())
app.use(error.notFound('src/views/404.hbs'))
app.use(routes(store))
return Server(app.callback())