about summary refs log tree commit diff
path: root/nuxt.config.js
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2019-10-17 21:08:25 +0200
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2019-10-17 21:08:25 +0200
commitedb6cb5adc69c8f2131b7b309d91a53e21af2486 (patch)
tree0387b78df50fbb69ef0b597d2dcdfc4913c337a5 /nuxt.config.js
parente81210cefcc34cd68f1a49c0f8146e08ffd01c24 (diff)
downloadpuszcza-edb6cb5adc69c8f2131b7b309d91a53e21af2486.tar.gz
puszcza-edb6cb5adc69c8f2131b7b309d91a53e21af2486.zip
Revert "Revert "Add kronikarz""
This reverts commit 4fe5fef70b111ab0e10d91ee7060302a52ca3b76.
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