File tree 2 files changed +3
-11
lines changed
2 files changed +3
-11
lines changed Original file line number Diff line number Diff line change 1
1
/** @jsxImportSource react */
2
2
import { useState , useCallback , useRef } from "react" ;
3
- import { ALGOLIA } from "../../consts" ;
4
3
import "@docsearch/css" ;
5
4
import "./Search.css" ;
6
5
@@ -71,9 +70,9 @@ export default function Search() {
71
70
initialQuery = { initialQuery }
72
71
initialScrollY = { window . scrollY }
73
72
onClose = { onClose }
74
- indexName = { ALGOLIA . indexName }
75
- appId = { ALGOLIA . appId }
76
- apiKey = { ALGOLIA . apiKey }
73
+ indexName = { import . meta . env . ALGOLIA_INDEX_NAME }
74
+ appId = { import . meta . env . ALGOLIA_APP_ID }
75
+ apiKey = { import . meta . env . ALGOLIA_SEARCH_KEY }
77
76
transformItems = { ( items ) => {
78
77
return items . map ( ( item ) => {
79
78
// We transform the absolute URL into a relative URL to
Original file line number Diff line number Diff line change @@ -17,13 +17,6 @@ export const KNOWN_LANGUAGES = {
17
17
} as const ;
18
18
export const KNOWN_LANGUAGE_CODES = Object . values ( KNOWN_LANGUAGES ) ;
19
19
20
- // See "Algolia" section of the README for more information.
21
- export const ALGOLIA = {
22
- indexName : "XXXXXXXXXX" ,
23
- appId : "XXXXXXXXXX" ,
24
- apiKey : "XXXXXXXXXX" ,
25
- } ;
26
-
27
20
export const OPENAPI_TS_CONTRIBUTORS = [
28
21
...new Set ( [
29
22
"drwpow" ,
You can’t perform that action at this time.
0 commit comments