# 정적 콘텐츠의 Static Site Generation을 꺼보았다

> Clean Markdown view of GeekNews topic #9597. Use the original source for factual precision when an external source URL is present.

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=9597](https://news.hada.io/topic?id=9597)
- GeekNews Markdown: [https://news.hada.io/topic/9597.md](https://news.hada.io/topic/9597.md)
- Type: news
- Author: [hiddenest](https://news.hada.io/@hiddenest)
- Published: 2023-07-03T12:33:02+09:00
- Updated: 2023-07-03T12:33:02+09:00
- Original source: [hiddenest.dev](https://hiddenest.dev/turn-off-ssr)
- Points: 11
- Comments: 0

## Topic Body

몇 천개의 콘텐츠를 Headless CMS 등의 API로 받아와 제공하는 경우에도 SSG(Static Site Generation)를 하는 것이 좋은가?  
  
- 정적 사이트 생성시 SSG 옵션을 주는 것이 옳은지 시행착오를 거치며 판단한 이야기  
- Next.js App Directory 기준, 데이터 캐시를 적극 사용함으로 빌드시간 1/5로 감소, 렌더링 퍼포먼스 동일하게 나타남  
- 데이터 캐시의 적극 활용을 위해 최초 1회 페이지 접속이 필요한데, 이 부분을 검색 크롤러가 대신할 수 있음  
  
**기타**  
- App Router부터는 SSG, ISR 등을 모두 Data Fetching 기준으로 Static, Dynamic으로 구분하는 쪽으로 설명이 변경된 것으로 보임 ([Static and Dynamic Rendering](https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic-rendering))  
- [Is Next.js App Router SLOW? Performance Deep Dive](https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic-rendering) by theo.gg

## Comments



_No public comments on this page._
