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 6ef4e09..016f39f 100644
--- a/nuxt.config.js
+++ b/nuxt.config.js
@@ -1,4 +1,4 @@
-import k from './api'
+import { createRoutesArray } from './api/api.js'
 
 export default {
   mode: 'universal',
@@ -34,7 +34,7 @@ export default {
     ]
   },
   generate: {
-    routes: k.getPosts().map(post => post.route)
+    routes: createRoutesArray()
   },
   /*
    ** Customize the progress-bar color