index
SSG/ static site generationexport const dynamic = 'force-static'

HTML generated once at build time.

pattern
SSGStatic 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
  1. 01build
  2. 02generate html
  3. 03cdn cache
  4. 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.