Pre-renderedSSG
Static Site Generation
This page was pre-rendered at build time. The content is static and served instantly from the edge without any server-side processing.
Generated at build:
2026-01-02T08:23:54.156ZPosts:
6How SSG Works
1
Build Time
Page is rendered during the build process
2
Static HTML
HTML is cached on the CDN edge
3
Instant Delivery
Served instantly with no computation
Categories:TrendsReactAccessibilityCSSTestingAPI
Code Example
// In Next.js 14 App Router, pages are SSG by default
// Just export a regular component without any data fetching
const blogPosts = [
{ id: 1, title: "...", excerpt: "..." },
// Static data defined at build time
];
export default function SSGPage() {
return <BlogList posts={blogPosts} />;
}
// For dynamic routes, use generateStaticParams:
export async function generateStaticParams() {
return posts.map((post) => ({ slug: post.slug }));
}