mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-15 04:26:37 +00:00
strip out netlify-preview domain from search results
This commit is contained in:
parent
b527950e6d
commit
523dee284d
1 changed files with 6 additions and 1 deletions
|
|
@ -9,6 +9,11 @@ export const Search: React.FC = () => {
|
||||||
|
|
||||||
// TODO: Replace Algolia test keys with above env vars when ready
|
// TODO: Replace Algolia test keys with above env vars when ready
|
||||||
return (
|
return (
|
||||||
<DocSearch appId={appId} apiKey={apiKey} indexName={indexName} />
|
<DocSearch appId={appId} apiKey={apiKey} indexName={indexName} transformItems={
|
||||||
|
items => items.map(item => ({
|
||||||
|
...item,
|
||||||
|
url: item.url.replace('https://melodious-puffpuff-8e1109.netlify.app/', ''),
|
||||||
|
}))
|
||||||
|
} />
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue