Zion
Zion
TtRPC
Created by Zion on 12/20/2023 in #❓-help
Using trpc with fastify server and nextjs client
sadly no, I decided to not use Nextjs as client but vite with tanstack router. still need to figure out how to use the SSG/SSR in that too.
4 replies
TtRPC
Created by Zion on 12/29/2023 in #❓-help
tRPC and vite serverless, are there any exmaples?
hm, would the ecosystem really play a part if I just use trpc and its serverless? dont really know much about backend stuff
21 replies
TtRPC
Created by Zion on 12/29/2023 in #❓-help
tRPC and vite serverless, are there any exmaples?
neat, I tried deploying serverless fastify in a monorepo and had lots of problems with making it run in dev or production, hope I wont have the same issues. does it matter if I use express or fastify? (as in, performance or whatever)
21 replies
TtRPC
Created by Zion on 12/29/2023 in #❓-help
tRPC and vite serverless, are there any exmaples?
ok thats cool, I assume vinxi isnt really production ready yet tho, from the version numbering. I dont really mind having a stateful server like express/fastify, but where would I host it? the docs for it seems empty (in vinxi)
21 replies
TtRPC
Created by Zion on 12/29/2023 in #❓-help
tRPC and vite serverless, are there any exmaples?
I see that vinxi have their own router tho? (unless I didnt get the docs right), I really want a stack with tanstack router, a stack of vite-trpc-tanstack router with othert features from nextjs (ssr/ssg/isr and serverless - if possible) would be really powerful and full typesafety. seems like the vite vercel plugin takes care of it, no idea how to use trpc with it tho
21 replies
TtRPC
Created by Zion on 12/29/2023 in #❓-help
tRPC and vite serverless, are there any exmaples?
Yeah, I made a template with fastify and vite, it works well, but I'd like to have a solution I can host on vercel, and have ssr/ssg. the vite-vercel plugin seems good, but Im not sure theres a adapter for it
21 replies
TtRPC
Created by Zion on 11/1/2023 in #❓-help
Help with inferring output
the issue is that I need to turn it to a singular item from the array and its not working when having that include, with or without the coditions
9 replies
TtRPC
Created by Zion on 11/1/2023 in #❓-help
Help with inferring output
I thought this might be the problem but even if I just have a price: true the error is the same, I dont need it to tell me what pricing is there, I just dont want it sent to the user, it pretty much just have every price as number | undefined which is fine by me
9 replies
TtRPC
Created by Zion on 11/1/2023 in #❓-help
Help with inferring output
No description
9 replies
TtRPC
Created by Zion on 8/15/2023 in #❓-help
Get object type using UseTRPCQueryResult
solved it
3 replies