From 0846554fa215fc906fcdbab8c7eb06c83c1b30d8 Mon Sep 17 00:00:00 2001 From: Jared Palmer Date: Fri, 2 Jun 2023 13:29:13 -0400 Subject: [PATCH] Switch to edge --- app/chat/[id]/page.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/chat/[id]/page.tsx b/app/chat/[id]/page.tsx index 51358d7..c7a797c 100644 --- a/app/chat/[id]/page.tsx +++ b/app/chat/[id]/page.tsx @@ -23,10 +23,9 @@ export async function generateMetadata({ }; } -// Prisma does not support Edge without the Data Proxy currently -export const runtime = "nodejs"; // default +export const runtime = "edge"; // default export const preferredRegion = "home"; -export const dynamic = "force-dynamic"; + export default async function ChatPage({ params }: ChatPageProps) { const session = await auth(); const chat = await db.query.chats.findFirst({