tRPC Context object empty
Hey guys,
I wanted to try to implement context using tRPC. I followed the docs line by line but I keep getting an empty object when I return the ctx in my procedure.
Here is my code:
context.ts
`
trpc.ts
router.ts
I'd appreciate any help I could get
1 Reply
I fixed.
I knew the function wasn't actually called anywhere so typescript gave me a hint when I tried to build the project.
Here is what I had to do in /api/trpc/[trpc].ts: