tRPCttRPC
Powered by
Teodorant, Tech-PriestT
tRPC•2y ago•
4 replies
Teodorant, Tech-Priest

In my NEXTJS app can read value next-auth session in localhost ,but not when deployed to Vercel

I have several procedures in my TRPC router (https://github.com/Teodorant1/nighthawk_repair/blob/master/server/index.ts), it seems to be bricking in the ones where I am awaiting the session
 const session = (await getServerSession(authOptions)) as Session; 
 const session = (await getServerSession(authOptions)) as Session; 
seems to be the line of code that is bricking it on Vercel
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Next-auth session error
Eka YudaEEka Yuda / ❓-help
13mo ago
Next-auth session not being fetched in tRPC context
MinhazMMinhaz / ❓-help
3y ago
Response not available in Nextjs App Router?
dragonpopeDdragonpope / ❓-help
5w ago
can't create context when using nextjs app dir
KyleBKKyleB / ❓-help
14mo ago