forked from microsoft/BotBuilder-Samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
8 lines (7 loc) · 608 Bytes
/
config.js
1
2
3
4
5
6
7
8
module.exports = function () {
//process.env variables defined in Azure if deployed to a web app. For testing, place IDs and Keys inline
global.searchName = process.env.AZURE_SEARCH_NAME ? process.env.AZURE_SEARCH_NAME : "<YourSearchName>";
global.indexName = process.env.INDEX_NAME ? process.env.AZURE_SEARCH_NAME : "<YourIndexName>";
global.searchKey = process.env.INDEX_NAME ? process.env.AZURE_SEARCH_KEY : "<YourSearchKey>";
global. queryString = 'https://' + searchName + '.search.windows.net/indexes/' + indexName + '/docs?api-key=' + searchKey + '&api-version=2015-02-28&';
}