Try removing edge

This commit is contained in:
Jared Palmer 2023-06-16 13:01:52 -04:00
parent 3bd1232162
commit 1208dbbbcb
3 changed files with 4 additions and 4 deletions

View file

@ -1,2 +1,2 @@
export { GET, POST } from '@/auth' export { GET, POST } from '@/auth'
export const runtime = 'edge' // export const runtime = 'edge'

View file

@ -1,7 +1,7 @@
import { nanoid } from '@/lib/utils' import { nanoid } from '@/lib/utils'
import { Chat } from '@/components/chat' import { Chat } from '@/components/chat'
export const runtime = 'edge' // export const runtime = 'edge'
export default function IndexPage() { export default function IndexPage() {
const id = nanoid() const id = nanoid()

View file

@ -18,9 +18,9 @@ export const {
} }
return token return token
} }
// @ts-ignore // // @ts-ignore
// authorized({ request, auth }) { // authorized({ request, auth }) {
// if (!request.nextUrl.pathname.startsWith('/share/')) return true // if (!request.nextUrl.pathname.startsWith('/share/')) return false
// return !!auth?.user // return !!auth?.user
// } // }
}, },