Skip to content

Commit

Permalink
dynamic algolia indexName
Browse files Browse the repository at this point in the history
  • Loading branch information
mihaiblaga89 committed Apr 9, 2024
1 parent 1670d5a commit cb81654
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/next.yml
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Pull Vercel Environment Information
run: vercel pull --yes --git-branch=release/1.0 --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
- name: Build Project Artifacts
run: BASE_URL=https://docs-next.renative.org vercel build
run: BASE_URL=https://docs-next.renative.org ALGOLIA_INDEX=renative_docsearch vercel build
- name: Deploy Project Artifacts to Vercel
run: |
url="$(vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }})"
Expand All @@ -38,5 +38,5 @@ jobs:
uses: addnab/docker-run-action@v3
with:
image: algolia/docsearch-scraper
options: --env-file=algolia.env
options: --env-file=algolia.env -e "CONFIG=$(cat ./config.next.json | jq -r tostring)"
run: pipenv run python -m src.index
2 changes: 1 addition & 1 deletion docusaurus.config.js
Expand Up @@ -96,7 +96,7 @@ const config = {
algolia: {
appId: 'FMYKKKF9Q8',
apiKey: 'fd3bf87fce092e08e71378cf066734b2',
indexName: 'renative_docs',
indexName: process.env.ALGOLIA_INDEX || 'renative_docs',
placeholder: 'Search...',
},
navbar: {
Expand Down

0 comments on commit cb81654

Please sign in to comment.