Skip to content

Commit

Permalink
fix: enable algolia search (#641)
Browse files Browse the repository at this point in the history
  • Loading branch information
prisis committed Mar 23, 2022
1 parent 7f32614 commit a759c87
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions docs/.vitepress/config.mjs
Expand Up @@ -40,13 +40,10 @@ const sidebar = {
],
};

// grab from process.env once this is building on netlify
const algolia = {
apiKey: '',
indexName: '',
searchParameters: {
facetFilters: [''],
},
apiKey: process.env.API_KEY,
appId: process.env.APP_ID,
indexName: 'fakerjs',
};

const description =
Expand Down Expand Up @@ -111,7 +108,6 @@ export default defineConfig({
editLinkText: 'Suggest changes to this page',
nav,
sidebar,
// TODO 2022-03-06: https://github.com/faker-js/faker/issues/222
// algolia,
algolia,
},
});

0 comments on commit a759c87

Please sign in to comment.