From 16cc26491782355871307646eddf905685bc47c0 Mon Sep 17 00:00:00 2001 From: Mateusz Filipowicz Date: Wed, 3 Jun 2020 21:12:49 +0200 Subject: [PATCH] fix: temporarily do not require config in algolia --- src/utils/algolia.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/algolia.js b/src/utils/algolia.js index 9c386eff..47b5bf0d 100644 --- a/src/utils/algolia.js +++ b/src/utils/algolia.js @@ -1,4 +1,4 @@ -const config = require("../../.generated.config.js"); +// const config = require("../../.generated.config.js"); const pageQuery = `{ pages: allMdx { @@ -30,7 +30,7 @@ const flatten = arr => const settings = { attributesToSnippet: [`excerpt:20`] }; -const indexName = config.search ? config.search.indexName : ''; +const indexName = "docs"; //config.search ? config.search.indexName : ''; const queries = [ { query: pageQuery,