생성 방법은 여러가지 인데, 써드파티 라이브러리를 사용한다면 client component에서만 생성 가능하다. document를 찾을 수 없기 때문에 오류가 발생한다. next.js는 pages router에서도 getiInitialProps의 context.req|