how does NextJs know what code to run on the backend vs frontend?

I thought only things in the API folder in Pages are ran on the backend, but there's a server folder in create-t3-app for the backend stuff Would someone explain to me?
4 Replies
Ambushfall
Ambushfall2y ago
For this I'd reckon you get familiar with Next JS first, rather than hopping into CT3
baotaoh
baotaoh2y ago
Create t3 app uses trpc. And there is a trpc folder in the api folder that loads your trpc routes - simply put.
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Chen
Chen2y ago
oh i see well put
Want results from more Discord servers?
Add your server