Try removing edge
This commit is contained in:
parent
3bd1232162
commit
1208dbbbcb
3 changed files with 4 additions and 4 deletions
|
|
@ -1,2 +1,2 @@
|
||||||
export { GET, POST } from '@/auth'
|
export { GET, POST } from '@/auth'
|
||||||
export const runtime = 'edge'
|
// export const runtime = 'edge'
|
||||||
|
|
|
||||||
|
|
@ -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()
|
||||||
|
|
|
||||||
4
auth.ts
4
auth.ts
|
|
@ -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
|
||||||
// }
|
// }
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue