* 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.
15 lines
492 B
JavaScript
15 lines
492 B
JavaScript
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;
|
|
};
|