Skip to content

Commit

Permalink
restore algolia params
Browse files Browse the repository at this point in the history
  • Loading branch information
timothymcmackin committed Nov 10, 2023
1 parent 7638382 commit 7ec3e0b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/deploy-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ name: CD - production
on:
push:
branches: [ main ]
env:
NEXT_PUBLIC_BASE_PATH: ''
NEXT_PUBLIC_DOCSEARCH_APP_ID: ${{ secrets.NEXT_PUBLIC_DOCSEARCH_APP_ID }}
NEXT_PUBLIC_DOCSEARCH_API_KEY: ${{ secrets.NEXT_PUBLIC_DOCSEARCH_API_KEY }}
NEXT_PUBLIC_DOCSEARCH_INDEX_NAME: ${{ secrets.NEXT_PUBLIC_DOCSEARCH_INDEX_NAME }}

jobs:
build:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ name: CD
on:
push:
branches: [ staging ]
env:
NEXT_PUBLIC_BASE_PATH: ''
NEXT_PUBLIC_DOCSEARCH_APP_ID: ${{ secrets.NEXT_PUBLIC_DOCSEARCH_APP_ID }}
NEXT_PUBLIC_DOCSEARCH_API_KEY: ${{ secrets.NEXT_PUBLIC_DOCSEARCH_API_KEY }}
NEXT_PUBLIC_DOCSEARCH_INDEX_NAME: ${{ secrets.NEXT_PUBLIC_DOCSEARCH_INDEX_NAME }}

jobs:
build:
Expand Down
6 changes: 3 additions & 3 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,10 @@ const config = {
},
algolia: {
// The application ID provided by Algolia
appId: process.env.NEXT_PUBLIC_DOCSEARCH_APP_ID || 'R2IYF7ETH7',
appId: process.env.NEXT_PUBLIC_DOCSEARCH_APP_ID,
// Public API key: it is safe to commit it
apiKey: process.env.NEXT_PUBLIC_DOCSEARCH_API_KEY || '599cec31baffa4868cae4e79f180729b',
indexName: process.env.NEXT_PUBLIC_DOCSEARCH_INDEX_NAME || 'docsearch',
apiKey: process.env.NEXT_PUBLIC_DOCSEARCH_API_KEY,
indexName: process.env.NEXT_PUBLIC_DOCSEARCH_INDEX_NAME,
// Optional: see doc section below
contextualSearch: true,
// Optional: Specify domains where the navigation should occur through window.location instead on history.push. Useful when our Algolia config crawls multiple documentation sites and we want to navigate with window.location.href to them.
Expand Down

0 comments on commit 7ec3e0b

Please sign in to comment.