Use generated app list for routes

This commit is contained in:
Sam Carlton 2020-09-19 15:05:53 -05:00
parent 678e8697f8
commit ce9e24ab28

View file

@ -32,9 +32,10 @@ export default {
generate: { generate: {
routes() { routes() {
return buildAppList() return import('./assets/app-list.json')//buildAppList()
.then((appList) => { .then((importedAppList) => {
// console.log('result', result) const appList = importedAppList.default
// console.log('appList', appList)
return appList.map(app => ({ return appList.map(app => ({
route: '/app/' + app.slug, route: '/app/' + app.slug,