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
|
|
|
|
2023-06-02 11:57:44 -04:00
|
|
|
export const runtime = "edge"; // default
|
2023-05-19 12:33:56 -04:00
|
|
|
export const preferredRegion = "home";
|
|
|
|
|
|
|
|
|
|
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>
|
|
|
|
|
);
|
|
|
|
|
}
|