Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Beta] Fix preconnect link to target search cluster #3980

Merged
merged 1 commit into from
Oct 23, 2021

Conversation

francoischalifour
Copy link
Contributor

The appId was retrieved from props but the <Search> component is never instantiated with props. So the preconnect link targeted an unknown search cluster:

<link rel="preconnect" href="https://undefined-dsn.algolia.net" crossorigin="true">

This fixes the preconnect link by getting the appId from the website config.

The `appId` was retrieved from props but the `<Search>` component is never instantiated with props. So the preconnect link targeted an unknown search cluster:

```html
<link rel="preconnect" href="https://undefined-dsn.algolia.net" crossorigin="true">
```

This fixes the preconnect link by getting the `appId` from the website config.
@francoischalifour francoischalifour changed the title Fix preconnect link to target search cluster [Beta] Fix preconnect link to target search cluster Oct 22, 2021
@rachelnabors
Copy link
Contributor

2020_me_thanks

@rachelnabors rachelnabors merged commit cfcb3a2 into reactjs:beta Oct 23, 2021
gaearon pushed a commit that referenced this pull request Oct 28, 2021
The `appId` was retrieved from props but the `<Search>` component is never instantiated with props. So the preconnect link targeted an unknown search cluster:

```html
<link rel="preconnect" href="https://undefined-dsn.algolia.net" crossorigin="true">
```

This fixes the preconnect link by getting the `appId` from the website config.
gaearon pushed a commit that referenced this pull request Oct 28, 2021
The `appId` was retrieved from props but the `<Search>` component is never instantiated with props. So the preconnect link targeted an unknown search cluster:

```html
<link rel="preconnect" href="https://undefined-dsn.algolia.net" crossorigin="true">
```

This fixes the preconnect link by getting the `appId` from the website config.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants