NNext.js Feature Showcase
Rendering · SSG

Static Site Generation (SSG)

The HTML is generated once at build time and served as a fully static file. It loads instantly, can be cached aggressively, and needs no server work per request: ideal for content that doesn't rely on live data.

Expected behaviour

The list of features is baked directly into the generated HTML. Refresh the page or navigate away and back: the content stays identical until the next build. No API calls or rendering happen at request time.

How this page works

  1. 1Next.js scans the file during the build.
  2. 2It generates a static HTML file containing the feature list.
  3. 3The page is served instantly from disk or a CDN.
  4. 4No server-side code runs when someone visits the page.

Live result

Built into the HTML at build time:

  • SSR
  • SSG
  • ISR
  • Streaming
  • Server Actions
  • API Routes
  • Dynamic Routes
  • Image Optimization