Skip to content

Commit

Permalink
Update algolia API key for next
Browse files Browse the repository at this point in the history
  • Loading branch information
jtcohen6 committed Aug 12, 2020
1 parent 0b6160e commit c58259c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
3 changes: 2 additions & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@

[context.next.environment]
PRERELEASE = "true"
ALGOLIA_INDEX_NAME = "dbt-next"
ALGOLIA_API_KEY = "044414e92a8b8137a33fd276d4533895"
ALGOLIA_INDEX_NAME = "dbt_next"
9 changes: 8 additions & 1 deletion website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ if (!PRERELEASE) {
}
}

var ALGOLIA_API_KEY;
if (!process.env.ALGOLIA_API_KEY) {
ALGOLIA_API_KEY = '0e9665cbb272719dddc6e7113b4131a5';
} else {
ALGOLIA_API_KEY = process.env.ALGOLIA_API_KEY;
}

var ALGOLIA_INDEX_NAME;
if (!process.env.ALGOLIA_INDEX_NAME) {
ALGOLIA_INDEX_NAME = 'dbt';
Expand Down Expand Up @@ -60,7 +67,7 @@ module.exports = {
announcementBar: WARNING_BANNER,

algolia: {
apiKey: '0e9665cbb272719dddc6e7113b4131a5',
apiKey: ALGOLIA_API_KEY,
//debug: true,
indexName: ALGOLIA_INDEX_NAME,
algoliaOptions: {
Expand Down

0 comments on commit c58259c

Please sign in to comment.