SSG with generateStaticParamsPre-Rendered at Build Time

This page is generated at build time for each path returned by generateStaticParams once when next build runs.

Producing fully static HTML that is served to every visitor. Unlike SSR, no server processing is needed at request time, ensuring fast load times.

This strategy combines the flexibility of dynamic URLs with the performance of static pages, making it ideal for content that rarely changes but requires multiple paths.

Build Time

charmeleon

Pokémon fetched at build time based on the [name] route parameter, page is statically pre-rendered for each specified path, with the same content for all visitors until the site is rebuilt.

Pre-Rendered Pages

  1. /ssg/dynamic-route/bulbasaur
  2. /ssg/dynamic-route/ivysaur
  3. /ssg/dynamic-route/venusaur
  4. /ssg/dynamic-route/charmander
  5. /ssg/dynamic-route/charmeleon
  6. /ssg/dynamic-route/charizard
  7. /ssg/dynamic-route/squirtle
  8. /ssg/dynamic-route/wartortle
  9. /ssg/dynamic-route/blastoise
Pages generated at