diff --git a/src/components/UI/Search.tsx b/src/components/UI/Search.tsx index 195f375d48..8c8ea28df7 100644 --- a/src/components/UI/Search.tsx +++ b/src/components/UI/Search.tsx @@ -6,13 +6,19 @@ export const Search: React.FC = () => { const appId = process.env.NEXT_PUBLIC_ALGOLIA_APP_ID || ''; const apiKey = process.env.NEXT_PUBLIC_ALGOLIA_SEARCH_API_KEY || ''; const indexName = process.env.NEXT_PUBLIC_ALGOLIA_BASE_SEARCH_INDEX_NAME || ''; - const indexDomain = process.env.NEXT_PUBLIC_ALGOLIA_INDEX_DOMAIN || 'https://melodious-puffpuff-8e1109.netlify.app'; + const indexDomain = + process.env.NEXT_PUBLIC_ALGOLIA_INDEX_DOMAIN || 'https://melodious-puffpuff-8e1109.netlify.app'; return ( - items.map(item => ({ - ...item, - url: item.url.replace(indexDomain, ''), - })) - } /> + + items.map(item => ({ + ...item, + url: item.url.replace(indexDomain, '') + })) + } + /> ); };