getInitialProps 호출URL주소로 직접 페이지에 접근하면 Node환경에서 getInitialProps가 호출됨웹브라우저(클라이언트) 에서 SPA로 화면을 이동 할 경우 브라우저 환경에서 getInitialProps가 호출됨getInitialProps의 리턴값
정적 페이지 생성을 지원하며 빌드타임때 딱 한번 실행된다.빌드시 값은 고정되며 이후에는 변경 할 수 없다.페이지를 렌더링 할 때만 필요한 데이터를 불러올때 사용한다.페이지가 미리 렌더링되어야 할 떄 사용하면 좋다.getStaticProps와 함께 쓰인다.동적 라우팅을
ES2020의 문법으로 모듈을 빌드타임이 아닌, 런타임에 불러오도록 한다.첫 페이지 진입시, 필요한 최소한의 코드만 다운받고, 특정 페이지 이동시마다 필요한 코드를 로드 할 수 있게끔 하여 초기 성능을 높이기 위함.초기 로딩때 당장에 불필요한 기능까지 모두 로딩하는것보