medv ❄
procedure.input(z.object) is inferred as a partial (optional fields)?
Found the answer, this is an issue with tsconfig missing
strict: true
. Mine was set to strict, but apparently my nx integrated repo was not parsing the chain of extended configs correctly, so this small issue was just a symptom of a larger one. Zod just validated my environment 🤔5 replies
Is there a way to split a trpc api across multiple lambdas ?
Relevant: https://github.com/trpc/trpc/issues/4129
20 replies
Is there a way to split a trpc api across multiple lambdas ?
Thanks for responding. We aren't looking to host these in separate lambdas on separate endpoints, instead the modularization will occur with nestjs lazy loaded modules. I'd imagine the process for us will be slightly different as we do need the full router to be present at runtime, except one that is capable of mapping the request shape to the appropriate router path, at which point the lazy loading will occur. If we do get to this, I will write back here in the future.
20 replies