Skip to content

Commit

Permalink
feat: added post-build handling
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Feb 26, 2021
1 parent 631541f commit c9e339d
Show file tree
Hide file tree
Showing 7 changed files with 80,336 additions and 13 deletions.
10 changes: 1 addition & 9 deletions examples/react-webpack/.config/buildtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,6 @@ module.exports = {
},
},
search: {
indexingModule: require.resolve(
'@component-controls/search-algolia/indexing',
),
searchingModule: require.resolve('@component-controls/search-algolia'),
fields: ['title', 'description', 'source', 'tags', 'components'],
emptySearchDocuments: [
'Getting started/Site generators/Gatsby',
Expand All @@ -73,11 +69,7 @@ module.exports = {
'Writing Documentation/MDX Stories',
],
options: {
saveIndex: true, // turn to false when no more needed to re-index algolia search
indexName: process.env.ALGOLIA_SEARCH_INDEX_NAME,
appID: process.env.ALGOLIA_SEARCH_APP_ID,
searchAPIKey: process.env.ALGOLIA_SEARCH_SEARCH_KEY,
adminAPIKey: process.env.ALGOLIA_SEARCH_ADMIN_KEY,
isCaseSensitive: true,
},
},
tokens: {
Expand Down
Loading

0 comments on commit c9e339d

Please sign in to comment.