question about the "taint" section of the "From 0 to Production" tutorial
Theo described how its important to do your server calls away from components in a file marked with server only. Im following the tutorial but using trpc too, in the setup it seems like the server only functionality is already setup when the cli made the project, because i can see "server-only" imported in the server.ts file and i believe the context is being made here so i shouldnt have to also import it in the file holding my query?
But i just wanted to make sure i dont have to also include this in the router file.
Relevant code:
trpc/server.ts
server/api/routers/image.ts
0 Replies