Skip to content
This repository has been archived by the owner on Jul 16, 2023. It is now read-only.

Commit

Permalink
fix: temporarily do not require config in algolia
Browse files Browse the repository at this point in the history
  • Loading branch information
filipowm committed Jun 3, 2020
1 parent 85ce5db commit 16cc264
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/algolia.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const config = require("../../.generated.config.js");
// const config = require("../../.generated.config.js");

const pageQuery = `{
pages: allMdx {
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 16cc264

Please sign in to comment.