SSG with generateStaticParamsPre-Rendered at Build Time
This page is not generated at build time. Instead, it is generated on the first request for each path, then cached for subsequent requests. This approach allows the page to be created on-demand while serving fast cached versions to visitors after the initial render.
- ✔HTML is generated on the first request, not at build time
- ✔Data fetching happens on demand
- ✔Content is cached for subsequent visitors
- ✔Ideal for dynamic routes that can't be pre-rendered but are cacheable
This strategy generates pages on the first request and caches them, combining dynamic URL flexibility with fast repeat loads, making it ideal for content that doesn't need to be built upfront.
Generated at:
Pokémon is fetched on the first request based on the [name] route parameter, and the page is generated on demand, then cached and reused for all visitors.
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