debug: algolia demo keys
This commit is contained in:
parent
454ce1cdb3
commit
3b0d117e89
@ -3,14 +3,16 @@ import { DocSearch } from '@docsearch/react';
|
|||||||
import '@docsearch/css';
|
import '@docsearch/css';
|
||||||
|
|
||||||
export const Search: React.FC = () => {
|
export const Search: React.FC = () => {
|
||||||
// TODO: Replace Algolia test keys with '' when API key available for this repo (place in .env)
|
const appId = process.env.NEXT_PUBLIC_ALGOLIA_APP_ID || ''
|
||||||
const appId = process.env.NEXT_PUBLIC_ALGOLIA_APP_ID || 'R2IYF7ETH7'
|
const apiKey = process.env.NEXT_PUBLIC_ALGOLIA_SEARCH_API_KEY || ''
|
||||||
const apiKey = process.env.NEXT_PUBLIC_ALGOLIA_SEARCH_API_KEY || '599cec31baffa4868cae4e79f180729b'
|
const indexName = process.env.NEXT_PUBLIC_ALGOLIA_BASE_SEARCH_INDEX_NAME || ''
|
||||||
const indexName = process.env.NEXT_PUBLIC_ALGOLIA_BASE_SEARCH_INDEX_NAME || 'docsearch'
|
|
||||||
|
// TODO: Replace Algolia test keys with above env vars when ready
|
||||||
return (
|
return (
|
||||||
<DocSearch
|
<DocSearch
|
||||||
appId={appId}
|
appId="R2IYF7ETH7"
|
||||||
apiKey={apiKey}
|
apiKey="599cec31baffa4868cae4e79f180729b"
|
||||||
indexName={indexName} />
|
indexName="docsearch"
|
||||||
|
/>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user