fix: handle invalid Algolia keys gracefully in dev (#37088)

Invalid keys throw an error in production, but just cause invalid
PropTypes and build warnings in development.
This commit is contained in:
Oliver Eyton-Williams
2019-10-08 10:19:43 +02:00
committed by mrugesh
parent 4889e0fdc6
commit e72855dad3
4 changed files with 28 additions and 7 deletions

View File

@@ -5,8 +5,8 @@ ROLLBAR_APP_ID='my-rollbar-app-id'
ROLLBAR_CLIENT_ID='post_client_id from rollbar dashboard'
ALGOLIA_ADMIN_KEY=123abc
ALGOLIA_APP_ID=ACDEFG
ALGOLIA_API_KEY=123abc
ALGOLIA_APP_ID='Algolia app id from dashboard'
ALGOLIA_API_KEY='Algolia api key from dashboard'
AUTH0_CLIENT_ID=stuff
AUTH0_CLIENT_SECRET=stuff