chore(debug): next-auth url
This commit is contained in:
@@ -1,2 +1,19 @@
|
||||
export { GET, POST } from "@/auth"
|
||||
import { GET as _GET, POST as _POST } from "@/auth"
|
||||
|
||||
import type { NextRequest } from "next/server"
|
||||
|
||||
export const runtime = "edge"
|
||||
|
||||
export async function GET(req: NextRequest) {
|
||||
console.log({ GET_REQ: req })
|
||||
console.log({ GET_AUTH_URL: process.env.AUTH_URL })
|
||||
console.log({ GET_NEXTAUTH_URL: process.env.NEXTAUTH_URL })
|
||||
return _GET(req)
|
||||
}
|
||||
|
||||
export async function POST(req: NextRequest) {
|
||||
console.log({ POST_REQ: req })
|
||||
console.log({ POST_AUTH_URL: process.env.AUTH_URL })
|
||||
console.log({ POST_NEXTAUTH_URL: process.env.NEXTAUTH_URL })
|
||||
return _POST(req)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user