Large number of Vercel Edge Middleware Invocations coming from next-auth's `/api/auth/session`
I am using the
create-t3-app
with NextAuth
for auth. Also using the pages
router for this project.
I had about about 3k page views yesterday when I noticed that my Edge Middleware Invocations
went up by 4% in one day, with /api/auth/session
out in the lead with over a 1/4 of all invocations.
I am using the database
strategy with NextAuth
and i call getServerAuthSession
in createTRPCContext
Is this to be expected, or am i doing something wrong?![No description](https://answer-overflow-discord-attachments.s3.amazonaws.com/1232696823370612766/Screenshot_2024-04-24_at_15.03.44.png)
0 Replies