Skip to content

Commit

Permalink
perf: algolia search (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
nsdonato authored Mar 19, 2024
1 parent 51b62a2 commit 8ba4564
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ export default function RootLayout({
<Navbar />
<div className='grid grid-cols-1 gap-4 lg:grid-cols-6 mt-4'>
<SidebarMenu className='' />
<main className='p-4 lg:col-span-5'>{children}</main>
<main className='p-4 lg:col-span-5 DocSearch-content'>
{children}
</main>
</div>
<Analytics />
<ButtonUp />
Expand Down
4 changes: 4 additions & 0 deletions components/navbar/navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ function NavBar() {
apiKey={SEARCH_API_KEY}
indexName={'recursostech'}
appId={SEARCH_APP_ID}
// transformItems={items => {
// console.log(items)
// return items
// }}
/>
)}
</div>
Expand Down

0 comments on commit 8ba4564

Please sign in to comment.