xzxn
TTCTheo's Typesafe Cult
•Created by xzxn on 8/28/2023 in #questions
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?
6 replies