feat: support guest session (#919)
This commit is contained in:
parent
24cb2ce19b
commit
9279135355
34 changed files with 741 additions and 288 deletions
|
|
@ -4,6 +4,7 @@ import { Geist, Geist_Mono } from 'next/font/google';
|
|||
import { ThemeProvider } from '@/components/theme-provider';
|
||||
|
||||
import './globals.css';
|
||||
import { SessionProvider } from 'next-auth/react';
|
||||
|
||||
export const metadata: Metadata = {
|
||||
metadataBase: new URL('https://chat.vercel.ai'),
|
||||
|
|
@ -77,7 +78,7 @@ export default async function RootLayout({
|
|||
disableTransitionOnChange
|
||||
>
|
||||
<Toaster position="top-center" />
|
||||
{children}
|
||||
<SessionProvider>{children}</SessionProvider>
|
||||
</ThemeProvider>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue