Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ Run the following commands to start this application:
# below with the actual path of your project.
cd ~/Downloads/app-search-reference-ui

#Run this command to save the searchKey as an envrionment variable. This is required to Reference UI to connect to App Search. Replace the search key with the actual key from the App Search credentials section.
export REACT_APP_APPSEARCH_SEARCHKEY=search-XXXXXXXXXXXXXXXXXXXXXXX

# Run this to set everything up
npm install

Expand Down
4 changes: 2 additions & 2 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ import {
getFacetFields
} from "./config/config-helper";

const { hostIdentifier, searchKey, endpointBase, engineName } = getConfig();
const { hostIdentifier, endpointBase, engineName } = getConfig();
const connector = new AppSearchAPIConnector({
searchKey,
searchKey: process.env.REACT_APP_APPSEARCH_SEARCHKEY,
engineName,
hostIdentifier,
endpointBase
Expand Down