From 4d03e43ee64cf6de659f8df55023d988f9db423b Mon Sep 17 00:00:00 2001 From: Shu Ding Date: Fri, 16 Jun 2023 23:05:41 +0200 Subject: [PATCH] always use edge --- app/api/auth/[...nextauth]/route.ts | 2 +- app/chat/[id]/page.tsx | 2 +- app/share/[id]/page.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/api/auth/[...nextauth]/route.ts b/app/api/auth/[...nextauth]/route.ts index 4463a8e..883210b 100644 --- a/app/api/auth/[...nextauth]/route.ts +++ b/app/api/auth/[...nextauth]/route.ts @@ -1,2 +1,2 @@ export { GET, POST } from '@/auth' -// export const runtime = 'edge' +export const runtime = 'edge' diff --git a/app/chat/[id]/page.tsx b/app/chat/[id]/page.tsx index ff0acf4..d7ad6d6 100644 --- a/app/chat/[id]/page.tsx +++ b/app/chat/[id]/page.tsx @@ -5,7 +5,7 @@ import { auth } from '@/auth' import { getChat } from '@/app/actions' import { Chat } from '@/components/chat' -// export const runtime = 'edge' +export const runtime = 'edge' export const preferredRegion = 'home' export interface ChatPageProps { diff --git a/app/share/[id]/page.tsx b/app/share/[id]/page.tsx index f336590..3ec3f3e 100644 --- a/app/share/[id]/page.tsx +++ b/app/share/[id]/page.tsx @@ -6,7 +6,7 @@ import { getSharedChat } from '@/app/actions' import { ChatList } from '@/components/chat-list' import { FooterText } from '@/components/footer' -// export const runtime = 'edge' +export const runtime = 'edge' export const preferredRegion = 'home' interface SharePageProps {