제목 짤리네

getInitialProps랑
getServerSideProps
이 두개 정확히 뭐가 다른 건질 잘 모르겠음

getInitialProps는 최초에 SSR 될 때 빼곤 클라이언트 사이드에서 fetching하고 getServerSideProps는 항상 서버 사이드에서 fetching하는 것 같은데

이게 맞음?

처음엔 getInitialProps만 썼는데 빌드 해보니깐 WARNING 뜨길래 getServerSideProps로 바꿨거든

그랬더니 예를 들어 API를 불러와야 되면 무조건 서버에서 리퀘스트를 보내더라고

근데 난 클라이언트 사이드에서 API를 부르게 하고 싶거든
그래서 getInitialProps 쓰려고 하면 또 WARNING 뜨고..