From 2f45ba40295d701f540c485118f4d4ced3cff716 Mon Sep 17 00:00:00 2001 From: Kevin Date: Thu, 20 Jun 2019 00:49:28 +0200 Subject: [PATCH] generate dynamic routes config --- nuxt.config.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/nuxt.config.js b/nuxt.config.js index fd4d3c2..6958188 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -1,4 +1,5 @@ import pkg from './package' +import store from './store.json' export default { mode: 'universal', @@ -26,6 +27,13 @@ export default { ] }, + /* + ** Generate dynamic routes + */ + generate: { + routes: store.map(category => category.slug) + }, + /* ** Customize the progress-bar color */