index
SSG/ static site generation
export const dynamic = 'force-static'HTML generated once at build time.
pattern
SSG— Static Site Generation
HTML generated once at build time.
pros
- +fastest load
- +cdn-cached
cons
- −data can be stale
- −requires rebuild
use-cases
- blogs
- docs
- marketing
flowbuild → cache → serve
- 01build
- 02generate html
- 03cdn cache
- 04instant serve
livefrozen at build time
SSGrender-info
live- location
- build-time
- timestamp
- 2026-08-05T08:07:55.382Z
- build
- 2026-08-05T08:07:55.382Z
sourceapp/ssg/page.tsx
app/ssg/page.tsxtsx
1export const dynamic = 'force-static'2 3export default function Page() {4 const data = new Date().toISOString()5 return <div>{data}</div>6}hint
production only: timestamp stays pinned to the deploy. ship a new build to move it.