Move to next-auth
This commit is contained in:
parent
3b8bb9dea4
commit
a46b2ac3c6
10 changed files with 107 additions and 20 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import { getServerSession } from "@/lib/session/get-server-session";
|
||||
import { Chat } from "./chat";
|
||||
import { Sidebar } from "./sidebar";
|
||||
import { auth } from "@/auth";
|
||||
|
||||
// Prisma does not support Edge without the Data Proxy currently
|
||||
export const runtime = "nodejs"; // default
|
||||
|
|
@ -8,7 +8,7 @@ export const preferredRegion = "home";
|
|||
export const dynamic = "force-dynamic";
|
||||
|
||||
export default async function IndexPage() {
|
||||
const session = await getServerSession();
|
||||
const session = await auth();
|
||||
return (
|
||||
<div className="relative flex h-full w-full overflow-hidden">
|
||||
<Sidebar session={session} newChat />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue