Skip to content

Commit

Permalink
Fix preconnect link to target search cluster (jaredpalmer#3388)
Browse files Browse the repository at this point in the history
  • Loading branch information
francoischalifour authored Oct 28, 2021
1 parent 3ddf7a9 commit b9cc253
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/src/components/Search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const options = {

let DocSearchModal: any = null;

export const Search: React.FC<SearchProps> = ({ appId }) => {
export const Search: React.FC<SearchProps> = () => {
const searchButtonRef = React.useRef<HTMLButtonElement | null>(null);
const [isShowing, setIsShowing] = React.useState(false);
const [initialQuery, setInitialQuery] = React.useState<string | null>(null);
Expand Down Expand Up @@ -95,7 +95,7 @@ export const Search: React.FC<SearchProps> = ({ appId }) => {
<Head>
<link
rel="preconnect"
href={`https://${appId}-dsn.algolia.net`}
href={`https://${options.appId}-dsn.algolia.net`}
crossOrigin="true"
/>
</Head>
Expand Down

0 comments on commit b9cc253

Please sign in to comment.