From edb6cb5adc69c8f2131b7b309d91a53e21af2486 Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Thu, 17 Oct 2019 21:08:25 +0200 Subject: Revert "Revert "Add kronikarz"" This reverts commit 4fe5fef70b111ab0e10d91ee7060302a52ca3b76. --- nuxt.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nuxt.config.js') 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 -- cgit 1.4.1