tRPC Middleware consuming memory limit on Vercel
Hi all, I'm running into a weird error where my tRPC middleware to enforce that a user is authed, is reaching the memory limit on the request. I've used tRPC with the exact same middleware before and never ran into any of these issues, here's what the middleware looks like:
And here's the request in Vercel's logs.
1 Reply
Hey @kinsyu , I'm stuck in a problem related to the middlewares and I think you know the answer to my problem.
How does this ctx thingy work? Like why is it of type :{} and how can I get data out of it?