File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { RootProvider } from 'fumadocs-ui/provider/next';
22import localFont from 'next/font/local' ;
33import './global.css' ;
44import 'katex/dist/katex.css' ;
5+ import { basePath } from '@/lib/basePath' ;
56
67const satoshi = localFont ( {
78 src : [
@@ -59,7 +60,15 @@ export default function Layout({ children }: { children: React.ReactNode }) {
5960 className = { `${ satoshi . variable } ${ clashDisplay . variable } ` }
6061 suppressHydrationWarning >
6162 < body className = "flex flex-col min-h-screen" >
62- < RootProvider > { children } </ RootProvider >
63+ < RootProvider
64+ search = { {
65+ options : {
66+ type : 'static' ,
67+ api : `${ basePath } /api/search` ,
68+ } ,
69+ } } >
70+ { children }
71+ </ RootProvider >
6372 </ body >
6473 </ html >
6574 ) ;
You can’t perform that action at this time.
0 commit comments