chore: update to beta of react-instantsearch-dom (#36843)

* chore: update to beta of react-instantsearch-dom

* feat: use .env variables for search keys
This commit is contained in:
Oliver Eyton-Williams
2019-10-04 18:03:20 +02:00
committed by GitHub
parent 203ca92a20
commit 1130a1c0df
5 changed files with 60 additions and 39 deletions

View File

@ -11,7 +11,9 @@ const {
FORUM_LOCATION: forum,
NEWS_LOCATION: news,
LOCALE: locale,
STRIPE_PUBLIC: stripePublicKey
STRIPE_PUBLIC: stripePublicKey,
ALGOLIA_APP_ID: algoliaAppId,
ALGOLIA_API_KEY: algoliaAPIKey
} = process.env;
const locations = {
@ -21,4 +23,9 @@ const locations = {
newsLocation: news
};
module.exports = Object.assign(locations, { locale, stripePublicKey });
module.exports = Object.assign(locations, {
locale,
stripePublicKey,
algoliaAppId,
algoliaAPIKey
});