t
tRPC
T
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
tRPC
Join
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Next-auth session error
E
Eka Yuda / ❓-help
13mo ago
Next-auth session not being fetched in tRPC context
M
Minhaz / ❓-help
3y ago
Response not available in Nextjs App Router?
D
dragonpope / ❓-help
5w ago
can't create context when using nextjs app dir
K
KyleB / ❓-help
14mo ago