docs/lib/search/algolia-client.js

9 строки
237 B
JavaScript

require('dotenv').config()
const algoliasearch = require('algoliasearch')
const { ALGOLIA_APPLICATION_ID, ALGOLIA_API_KEY } = process.env
module.exports = function () {
return algoliasearch(ALGOLIA_APPLICATION_ID, ALGOLIA_API_KEY)
}