diff options
Diffstat (limited to 'examples/docs')
-rw-r--r-- | examples/docs/package.json | 8 | ||||
-rw-r--r-- | examples/docs/src/components/Header/Search.tsx | 1 | ||||
-rw-r--r-- | examples/docs/src/config.ts | 1 |
3 files changed, 8 insertions, 2 deletions
diff --git a/examples/docs/package.json b/examples/docs/package.json index 620bf726f..406c1f51f 100644 --- a/examples/docs/package.json +++ b/examples/docs/package.json @@ -9,12 +9,16 @@ "preview": "astro preview" }, "dependencies": { + "@algolia/client-search": "^4.12.0", "@docsearch/css": "^3.0.0", - "@docsearch/react": "^1.0.0-alpha.28" + "@docsearch/react": "^3.0.0", + "@types/react": "^17.0.39", + "react": "^17.0.2", + "react-dom": "^17.0.2" }, "devDependencies": { "@astrojs/renderer-react": "^0.5.0", "@astrojs/renderer-preact": "^0.5.0", - "astro": "^0.23.7" + "astro": "^0.24.0-next.0" } } diff --git a/examples/docs/src/components/Header/Search.tsx b/examples/docs/src/components/Header/Search.tsx index bbe02073d..ebc563c61 100644 --- a/examples/docs/src/components/Header/Search.tsx +++ b/examples/docs/src/components/Header/Search.tsx @@ -57,6 +57,7 @@ export default function Search() { initialScrollY={window.scrollY} onClose={onClose} indexName={(CONFIG as any).ALGOLIA.indexName} + appId={(CONFIG as any).ALGOLIA.appId} apiKey={(CONFIG as any).ALGOLIA.apiKey} transformItems={(items) => { return items.map((item) => { diff --git a/examples/docs/src/config.ts b/examples/docs/src/config.ts index 5953dd97a..174765d27 100644 --- a/examples/docs/src/config.ts +++ b/examples/docs/src/config.ts @@ -26,6 +26,7 @@ export const KNOWN_LANGUAGES = { // See "Algolia" section of the README for more information. // export const ALGOLIA = { // indexName: 'XXXXXXXXXX', +// appId: 'XXXXXXXXXX', // apiKey: 'XXXXXXXXXX', // } |