chatbot-template/app/page.tsx

21 lines
594 B
TypeScript
Raw Normal View History

2023-05-19 12:33:56 -04:00
import { Chat } from "./chat";
import { Sidebar } from "./sidebar";
2023-05-22 10:16:09 -04:00
import { auth } from "@/auth";
2023-05-19 12:33:56 -04:00
// Prisma does not support Edge without the Data Proxy currently
export const runtime = "nodejs"; // default
export const preferredRegion = "home";
export const dynamic = "force-dynamic";
export default async function IndexPage() {
2023-05-22 10:16:09 -04:00
const session = await auth();
2023-05-19 12:33:56 -04:00
return (
<div className="relative flex h-full w-full overflow-hidden">
<Sidebar session={session} newChat />
<div className="flex h-full min-w-0 flex-1 flex-col">
<Chat />
</div>
</div>
);
}