docs: use the default search dialog when no api key is provided (#4417)

This commit is contained in:
Alex Yang
2025-09-03 19:21:07 -07:00
committed by GitHub
parent cd742fad1e
commit a910174791

View File

@@ -53,7 +53,9 @@ export default function Layout({ children }: { children: ReactNode }) {
}}
search={{
enabled: true,
SearchDialog: CustomSearchDialog,
SearchDialog: process.env.ORAMA_PRIVATE_API_KEY
? CustomSearchDialog
: undefined,
}}
>
<NavbarProvider>