Just in general I don’t think I understand how to run a nextjs function on the edge with netlify for example I thought that if I did something like this
export const runtime = "edge"
export async function GET(request: Request, response: Response) {
const session = await withAuth()
console.log("On Edge session route")
if (session) {
return Response.json(session)
}
return Response.json({ error: "Unauthorized" }, { status: 401 })
}
Then it would run this on the edge but I see the logs over here
And nothing in the edge function logs, so I guess firstly would I be correct that if it were running on the edge runtime I would see logs in the edge runtime logs not server logs?