generated from nginx/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace hardcoded Coveo api keys with a call to Netlify function (#35)
* remove hardcoded key values, use variables instead * update variable names to COVEO_API_* * whitespace * remove conditional expression for each hugo build environment * use COVEO_SEARCH_TOKEN env var when calling js.Build * update comment * call Netlify function to get API key from environment * actually call function * use coveokey variable * call getSearchToken() function * remove passing search token as param to js.Build * make entire function async * fix path to function * get token string * use absolute path for search token api * try window.location.origin as prefix for token api
- Loading branch information
1 parent
d9ebb8a
commit 05302d6
Showing
2 changed files
with
16 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters