How do you guys make http calls to external backend from both client and server in nextjs?

On SPA its usually single httpTransport, but I can't understand how it suppose to work on backend (getServerSideProps) and frontend (client components) at the same time. Should I make a common httpTransport and use it everywhere, but wrapped with react-query on frontend, for example? Or everybody just use fetch, node-fetch?
2 Replies
barry
barry17mo ago
wtf is httpTransport that's .net shit?
xzxn
xzxnOP17mo ago
Thats actually answers my question Thanks!
Want results from more Discord servers?
Add your server