Open robert-s-hogan opened 7 months ago
potential next.js v14 solution:
// app/layout.tsx
import { ThemeProvider } from '../components/ThemeProvider';
import { AuthProvider } from '../components/AuthProvider';
export default function RootLayout({ children }) {
return (
<ThemeProvider>
<AuthProvider>
<html lang="en">
<body>
<main>{children}</main>
</body>
</html>
</AuthProvider>
</ThemeProvider>
);
}
use devblog for reference
next.js v13 page router config: