feat: use middleware to auth

This commit is contained in:
shinya
2025-06-30 20:58:55 +08:00
parent 3fe579bcba
commit f57cdb5ec1
5 changed files with 86 additions and 53 deletions

View File

@@ -3,7 +3,6 @@ import { Inter } from 'next/font/google';
import './globals.css';
import AuthProvider from '../components/AuthProvider';
import { ThemeProvider } from '../components/ThemeProvider';
const inter = Inter({ subsets: ['latin'] });
@@ -38,7 +37,7 @@ export default function RootLayout({
enableSystem
disableTransitionOnChange
>
<AuthProvider>{children}</AuthProvider>
{children}
</ThemeProvider>
</body>
</html>