Next.js Static Site (SSG)
Generate a fully static site with Next.js and explicit output settings.
When to Use
- •Content-heavy sites with low personalization
- •Static hosting requirements
Inputs
- •Routes to pre-render
- •Data sources and build-time needs
- •Hosting requirements for static export
Instructions
- •Use static data fetching in App Router or Pages Router.
- •Avoid server-only APIs for static-only routes.
- •Configure
next.config.tsfor static output if required. - •Validate routing for static-only constraints.
Output
- •Static-ready routing, data fetching, and output configuration.