From 1208dbbbcba5406bbd3cfaa4cb630c41a0b6bf94 Mon Sep 17 00:00:00 2001 From: Jared Palmer Date: Fri, 16 Jun 2023 13:01:52 -0400 Subject: [PATCH] Try removing edge --- app/api/auth/[...nextauth]/route.ts | 2 +- app/page.tsx | 2 +- auth.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/api/auth/[...nextauth]/route.ts b/app/api/auth/[...nextauth]/route.ts index 883210b..4463a8e 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/page.tsx b/app/page.tsx index ebc083b..0b0f876 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -1,7 +1,7 @@ import { nanoid } from '@/lib/utils' import { Chat } from '@/components/chat' -export const runtime = 'edge' +// export const runtime = 'edge' export default function IndexPage() { const id = nanoid() diff --git a/auth.ts b/auth.ts index 169c069..e5c8348 100644 --- a/auth.ts +++ b/auth.ts @@ -18,9 +18,9 @@ export const { } return token } - // @ts-ignore + // // @ts-ignore // authorized({ request, auth }) { - // if (!request.nextUrl.pathname.startsWith('/share/')) return true + // if (!request.nextUrl.pathname.startsWith('/share/')) return false // return !!auth?.user // } },