Automate trpc router definition using prisma-trpc-generator

I am trying to generate trpc router along with zod schema using prisma-trpc-generator. I am facing three problems
  1. contextPath :- as it was mentioned in the trpc file in the server folder there is no need to modify the file, should I export the context by default?
  2. How to provide trpcOptionsPath
  3. Be default publicProcedure gets exposed by the generator. How to export both publicProcedure as well as protectedProcedure
Was this page helpful?