Migrate all the things
* Migrates from Mongo to Postgres. * Migrates from JSPM to Webpack. * Migrates from React to Vuejs. * Migrates from Bootstrap to Bulma. Also: * Fixes rendering of meta data in the document head tag.
This commit is contained in:
parent
09706778d9
commit
7bb0497ff4
76 changed files with 6741 additions and 1760 deletions
15
public/src/entry-server.js
Normal file
15
public/src/entry-server.js
Normal file
|
@ -0,0 +1,15 @@
|
|||
import { app, router, store } from './app';
|
||||
|
||||
// This exported function will be called by `bundleRenderer`.
|
||||
// This is where we perform data-prefetching to determine the
|
||||
// state of our application before actually rendering it.
|
||||
// Since data fetching is async, this function is expected to
|
||||
// return a Promise that resolves to the app instance.
|
||||
export default (context) => {
|
||||
// set router's location
|
||||
router.push(context.url);
|
||||
|
||||
store.replaceState(context.initialState);
|
||||
|
||||
return app;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue