Skip to content

Commit

Permalink
Switch to EDB's algolia account
Browse files Browse the repository at this point in the history
Former-commit-id: 32f2b4b
  • Loading branch information
epbarger committed Mar 9, 2021
1 parent 75baccb commit 5b38ec3
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
NODE_OPTIONS: --max-old-space-size=4096
ALGOLIA_API_KEY: ${{ secrets.ALGOLIA_API_KEY }}
ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }}
ALGOLIA_INDEX_NAME: edb-staging
ALGOLIA_INDEX_NAME: edb-docs-staging
INDEX_ON_BUILD: true

- name: Netlify deploy
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
NODE_OPTIONS: --max-old-space-size=4096
ALGOLIA_API_KEY: ${{ secrets.ALGOLIA_API_KEY }}
ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }}
ALGOLIA_INDEX_NAME: edb
ALGOLIA_INDEX_NAME: edb-docs
GTM_ID: GTM-5W8M67
INDEX_ON_BUILD: true

Expand Down
2 changes: 1 addition & 1 deletion gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const ANSI_STOP = '\033[0m';

const isBuild = process.env.NODE_ENV === 'production';
const isProduction = process.env.APP_ENV === 'production';
const algoliaIndex = process.env.ALGOLIA_INDEX_NAME || 'edb-staging';
const algoliaIndex = process.env.ALGOLIA_INDEX_NAME || 'edb-docs-staging';

/******** Sourcing *********/
const sourceFilename = isBuild ? 'build-sources.json' : 'dev-sources.json';
Expand Down
4 changes: 2 additions & 2 deletions src/components/search/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import { SlashIndicator, ClearButton, SearchPane } from './formComps';
import useSiteMetadata from '../../hooks/use-sitemetadata';

const searchClient = algoliasearch(
'NQVJGNW933',
'3089ae4f190ea7c91590336eeba5f0ea',
'HXNAF5X3I8',
'fb05499144f0399f5985485b624a0290',
);

const useClickOutside = (ref, handler, events) => {
Expand Down
4 changes: 2 additions & 2 deletions src/pages/404.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import useSiteMetadata from '../hooks/use-sitemetadata';
import usePathPrefix from '../hooks/use-path-prefix';

const searchClient = algoliasearch(
'NQVJGNW933',
'3089ae4f190ea7c91590336eeba5f0ea',
'HXNAF5X3I8',
'fb05499144f0399f5985485b624a0290',
);

const buildQuery = (pathname, pathPrefix) => {
Expand Down
4 changes: 2 additions & 2 deletions src/pages/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import {
import useSiteMetadata from '../hooks/use-sitemetadata';

const searchClient = algoliasearch(
'NQVJGNW933',
'3089ae4f190ea7c91590336eeba5f0ea',
'HXNAF5X3I8',
'fb05499144f0399f5985485b624a0290',
);

const Search = (data) => {
Expand Down

0 comments on commit 5b38ec3

Please sign in to comment.