Feat: Welcome Page (#17150)

This commit is contained in:
Stuart Taylor
2018-05-15 06:12:05 +01:00
committed by mrugesh mohapatra
parent 47bb4ca5e3
commit 156ea1af76
172 changed files with 693 additions and 9738 deletions

View File

@@ -48,10 +48,9 @@ export default function reactSubRouter(app) {
});
}
app.use('/:lang', router);
app.use(router);
function serveReactApp(req, res, next) {
const { lang } = req;
const serviceOptions = { req };
if (req.originalUrl in markupMap) {
log('sending markup from cache');
@@ -68,7 +67,7 @@ export default function reactSubRouter(app) {
devtoolsEnhancer({ name: 'server' })
],
history: createMemoryHistory({ initialEntries: [ req.originalUrl ] }),
defaultState: { app: { lang } }
defaultState: {}
})
.filter(({
location: {