v1narth
v1narth
TtRPC
Created by v1narth on 4/7/2025 in #❓-help
tRPC in a “monorepo” (server / client folders in same repo)
So i happen to have a monorepo project in a sense that it has 2 folders (server / client) in the same repo. No workspaces, no package json or tsconfig in root. Trying to setup trpc, but client tsc throws server errors, my guess is because path aliases configured in both folders tsconfig. Is there a way to setup trpc in this case, or i need to look into converting the project into a valid monorepo?
2 replies
TtRPC
Created by v1narth on 8/29/2023 in #❓-help
Is there a way to use versioning for procedures?
I want to make multiple versions (v1 / v2) for a procedure, can i do it in procedure level?
5 replies
TtRPC
Created by v1narth on 8/7/2023 in #❓-help
Jest set cookie with caller
Im trying to test a protectedProcedure, which validates a cookie , if the cookie isnt present, it returns 401. Im using caller to call the endpoints inside jest tests, how i can set mock cookie for these tests?
5 replies
TtRPC
Created by v1narth on 7/4/2023 in #❓-help
tRPC + cls-hooked
Hi, im trying to implement cls-hooked library with trpc's protectedProcedure, but it doesnt seem to work. The value i set inside the usedoesnt exists afterwards. When im doing the same outside of the usefunction, it works as expected. Any idea what am i missing?
2 replies