kevinka
kevinka
Explore posts from servers
TtRPC
Created by kevinka on 7/12/2023 in #❓-help
how can I globally set a "middleware" callback for all onErrors on my React Query calls?
5 replies
TtRPC
Created by kevinka on 5/7/2023 in #❓-help
The only way to access useQuery options without input is passing undefined to it?
3 replies
TTCTheo's Typesafe Cult
Created by kevinka on 5/7/2023 in #questions
Is there a way to import a type from a Prisma Model on Client
I know that we have inferRouterInputs and inferRouterOutputs, but I dont feel that is what I need. TRPC provides a way to generate a type from model? or the right only way is literally the output?
17 replies
TTCTheo's Typesafe Cult
Created by kevinka on 5/7/2023 in #questions
Should I share packages on Turborepo?
I have 2 clients on my app, and I notice they literally have almost all the same dependencies. What I havent understood well about monorepo is about sharing dependencies, I have a package.json at Root of the project and each one for each project. Yesterday I had to import one package that I didnt had on a specific project but had in other and it work without install and I was WTF I see the right way of working is: - Dependencies which are in more than one project set on the package.json root and the specific ones on the project itself but what about deploying? will vercel for example find these dependencies or should I extend the package.json root somehow somwhere is that the right way to handle dependencies in a monorepo?
6 replies
TTCTheo's Typesafe Cult
Created by kevinka on 5/6/2023 in #questions
Cant use the same router to create multiple createTRPCReact?
3 replies
TtRPC
Created by kevinka on 5/6/2023 in #❓-help
Can't I create multiple TRPC React using same Router?
1 replies
TTCTheo's Typesafe Cult
Created by kevinka on 5/6/2023 in #questions
Library recommendation for Authentication on React?
On React Ive only worked with Cognito but since Im not using AWS I dont know what else. Ive built once an app doing from scratch but on Next.js. Im also using monorepo (dont know if it gives any advantages for share code with server so)
19 replies
TTCTheo's Typesafe Cult
Created by kevinka on 5/6/2023 in #questions
should I share TRPC client in a internal package?
I have 2 clients and 1 server in one monorepo. these 2 clients are consuming the same api/using the same trpc. both are doing the same, having a file just to crate the TRPC on the app by following this code: export const trpc = createTRPCReact<AppRouter>(); is right to share it in a internal package?
3 replies
TTCTheo's Typesafe Cult
Created by kevinka on 4/30/2023 in #questions
Help to deploy my TRPC proj from a monorepo (turborepo) at Vercel
I'm trying to learn monorepo with TRPC, both are new for me and Im kind struggling to deploy it because Im super newbie in deployments. I have a turborepo with two apps, one is my react app and other one is my node server in express + TRPC. I dont know if I did correctly but I went to vercel and Ive choose the FE project; for the build options I left what had there already, seems Vercel knows what to do when its turbo repo and it went all good!! In my head I had to make a separate new deploy from the same repo but choose the server (express + trpc), and then with my new service up and running set the env variable with the server url on the FE proj and all done. the thing is, I didnt found the node/express option on Vercel, and somehow I think I shouldnt deploy them separately. I dont know well how turborepo works and it sounds a bad place to ask help but thats what I got. Thanks all!
8 replies
TtRPC
Created by kevinka on 4/30/2023 in #❓-help
Help to deploy my TRPC proj from a monorepo (turborepo) at Vercel
I'm trying to learn monorepo with TRPC, both are new for me and Im kind struggling to deploy it because Im super newbie in deployments. I have a turborepo with two apps, one is my react app and other one is my node server in express with TRPC. I dont know if I did correctly but I went to vercel and Ive choose the FE project. for the build options I left what had there already, seems Vercel knows what to do when its turbo repo and it went all good!! In my head I had to make a separate new deploy from the same repo but choose the server (express + trpc), and then with my new service up and running set the env variable with the server url on the FE proj and all done. the thing is, I didnt found the node/express option on Vercel, and somehow I think I shouldnt deploy them separately. I dont know well how turborepo works and it sounds a bad place to ask help but thats what I got. Thanks all!
2 replies