TRPC + NextJS
Unanswered
Briard posted this in #help-forum
BriardOP
hello , im trying to implement drizzle postgresql and trpc
i think their documentation is using page router which is weird
i have specified my server directory and routes, but i still dont know what should be the content of my provider, i know it can handle all session and data, but what should be inside it ?
i think their documentation is using page router which is weird
i have specified my server directory and routes, but i still dont know what should be the content of my provider, i know it can handle all session and data, but what should be inside it ?
import { TrpcProvider } from "@/components/providers/trpc-provider";
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="en" suppressHydrationWarning>
<body
>
<TrpcProvider>
<ThemeProvider
attribute="class"
defaultTheme="system"
enableSystem
disableTransitionOnChange
>
{children}
</ThemeProvider>
</TrpcProvider>
</body>
</html>
);
}