From ce9e24ab28543344a0e426efa3e6edbf6a454823 Mon Sep 17 00:00:00 2001 From: Sam Carlton Date: Sat, 19 Sep 2020 15:05:53 -0500 Subject: [PATCH] Use generated app list for routes --- nuxt.config.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/nuxt.config.js b/nuxt.config.js index 5cdeb19..e42d34b 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -32,9 +32,10 @@ export default { generate: { routes() { - return buildAppList() - .then((appList) => { - // console.log('result', result) + return import('./assets/app-list.json')//buildAppList() + .then((importedAppList) => { + const appList = importedAppList.default + // console.log('appList', appList) return appList.map(app => ({ route: '/app/' + app.slug,