Skip to content

Commit a759c87

Browse files
authored
fix: enable algolia search (#641)
1 parent 7f32614 commit a759c87

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

docs/.vitepress/config.mjs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,10 @@ const sidebar = {
4040
],
4141
};
4242

43-
// grab from process.env once this is building on netlify
4443
const algolia = {
45-
apiKey: '',
46-
indexName: '',
47-
searchParameters: {
48-
facetFilters: [''],
49-
},
44+
apiKey: process.env.API_KEY,
45+
appId: process.env.APP_ID,
46+
indexName: 'fakerjs',
5047
};
5148

5249
const description =
@@ -111,7 +108,6 @@ export default defineConfig({
111108
editLinkText: 'Suggest changes to this page',
112109
nav,
113110
sidebar,
114-
// TODO 2022-03-06: https://github.com/faker-js/faker/issues/222
115-
// algolia,
111+
algolia,
116112
},
117113
});

0 commit comments

Comments
 (0)