mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-01-28 00:01:13 -05:00
10 lines
304 B
JavaScript
10 lines
304 B
JavaScript
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);
|