Skip to content

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
@nearestnabors
Copy link
Contributor

2020_me_thanks

@nearestnabors nearestnabors 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