about summary refs log tree commit diff
path: root/nuxt.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'nuxt.config.js')
-rw-r--r--nuxt.config.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/nuxt.config.js b/nuxt.config.js
index 016f39f..6ef4e09 100644
--- a/nuxt.config.js
+++ b/nuxt.config.js
@@ -1,4 +1,4 @@
-import { createRoutesArray } from './api/api.js'
+import k from './api'
 
 export default {
   mode: 'universal',
@@ -34,7 +34,7 @@ export default {
     ]
   },
   generate: {
-    routes: createRoutesArray()
+    routes: k.getPosts().map(post => post.route)
   },
   /*
    ** Customize the progress-bar color