chore: move search-indexing, supress webpack-cli progress (#39367)
This commit is contained in:
committed by
GitHub
parent
6e16a50329
commit
adef746299
9
tools/search-indexing/algolia/index.js
Normal file
9
tools/search-indexing/algolia/index.js
Normal file
@@ -0,0 +1,9 @@
|
||||
const algoliasearch = require('algoliasearch');
|
||||
const path = require('path');
|
||||
|
||||
const envPath = path.resolve(__dirname, '../.env');
|
||||
require('dotenv').config({ path: envPath });
|
||||
|
||||
const { ALGOLIA_ADMIN_KEY, ALGOLIA_APP_ID } = process.env;
|
||||
|
||||
exports.client = algoliasearch(ALGOLIA_APP_ID, ALGOLIA_ADMIN_KEY);
|
Reference in New Issue
Block a user