We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f09973a commit 8491593Copy full SHA for 8491593
1 file changed
docs/app/layout.tsx
@@ -2,6 +2,7 @@ import { RootProvider } from 'fumadocs-ui/provider/next';
2
import localFont from 'next/font/local';
3
import './global.css';
4
import 'katex/dist/katex.css';
5
+import { basePath } from '@/lib/basePath';
6
7
const satoshi = localFont({
8
src: [
@@ -59,7 +60,15 @@ export default function Layout({ children }: { children: React.ReactNode }) {
59
60
className={`${satoshi.variable} ${clashDisplay.variable}`}
61
suppressHydrationWarning>
62
<body className="flex flex-col min-h-screen">
- <RootProvider>{children}</RootProvider>
63
+ <RootProvider
64
+ search={{
65
+ options: {
66
+ type: 'static',
67
+ api: `${basePath}/api/search`,
68
+ },
69
+ }}>
70
+ {children}
71
+ </RootProvider>
72
</body>
73
</html>
74
);
0 commit comments