Fast
Fast
TtRPC
Created by DevThoughts on 4/19/2023 in #❓-help
Nextjs http endpoint (no prisma)
Personally I think creating an interface and just casting the json result to it would be the cleanest (Would still have to check if the result of the fetch is correct eg status = 200) almost like how you did it in the first snippet
9 replies
TtRPC
Created by DevThoughts on 4/19/2023 in #❓-help
Nextjs http endpoint (no prisma)
Does it just not show up on the client? and can you see the hello query?
9 replies
TtRPC
Created by DevThoughts on 4/19/2023 in #❓-help
Nextjs http endpoint (no prisma)
Trpc has nothing to do with Prisma i would recommend reading this https://trpc.io/docs And for the endpoint you would have to rewrite it to be defined in the trpc router as a procedure and not a regular nextjs endpoint
9 replies