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.
- ✔HTML is generated at build time for all specified paths
- ✔Data fetching occurs at build time
- ✔Content is consistent for every visitor
- ✔Ideal for dynamic routes that can be pre-rendered
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:
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
- /ssg/dynamic-route/bulbasaur
- /ssg/dynamic-route/ivysaur
- /ssg/dynamic-route/venusaur
- /ssg/dynamic-route/charmander
- /ssg/dynamic-route/charmeleon
- /ssg/dynamic-route/charizard
- /ssg/dynamic-route/squirtle
- /ssg/dynamic-route/wartortle
- /ssg/dynamic-route/blastoise
Pages generated at