josh_bee
josh_bee
TtRPC
Created by MadaShindeInai on 9/6/2023 in #❓-help
tRPC in Next without api rotes
When next builds you still get a client and server so there has to be a way to talk between the two over the web. Regardless of which solution you go with you will need to use API routes or some other method to reach the server so this isn't just a problem with tRPC. You are probably best of creating some type of api key / middleware which will reject unauthenticated requests.
3 replies