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 03518b6..00b34e5 100644
--- a/nuxt.config.js
+++ b/nuxt.config.js
@@ -1,4 +1,4 @@
-import { createRoutesArray } from './api/api.js'
+import k from './api'
 
 const BASE_URL = 'https://kronika--puszcza.netlify.com'
 
@@ -41,7 +41,7 @@ export default {
     ]
   },
   generate: {
-    routes: createRoutesArray()
+    routes: k.getPosts().map(post => post.route)
   },
   /*
    ** Customize the progress-bar color