upgrade to next.js 16 (#1334)

This commit is contained in:
josh 2025-11-29 13:21:34 +00:00 committed by GitHub
parent a3802348fa
commit e90a6ee209
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 272 additions and 247 deletions

View file

@ -1,12 +1,21 @@
import { cookies } from "next/headers";
import { redirect } from "next/navigation";
import { Suspense } from "react";
import { Chat } from "@/components/chat";
import { DataStreamHandler } from "@/components/data-stream-handler";
import { DEFAULT_CHAT_MODEL } from "@/lib/ai/models";
import { generateUUID } from "@/lib/utils";
import { auth } from "../(auth)/auth";
export default async function Page() {
export default function Page() {
return (
<Suspense fallback={<div className="flex h-dvh" />}>
<NewChatPage />
</Suspense>
);
}
async function NewChatPage() {
const session = await auth();
if (!session) {