Skip to content

Commit

Permalink
Fix preconnect link to target search cluster (#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

1 comment on commit b9cc253

@vercel
Copy link

@vercel vercel bot commented on b9cc253 Oct 28, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

formik – ./website

formik.org
onlyforms.dev
formik-git-master-formium.vercel.app
www.onlyforms.dev
formik-formium.vercel.app

Please sign in to comment.