EdgeOne Pages Next.js Starter - SSG

Pre-generates all pages at build time for maximum performance.

Suitable for corporate websites and static content, the advantage is the fastest possible loading speed, but content cannot be updated without rebuilding the site.

// app/ssg/page.tsx
// No export const dynamic or revalidate - defaults to static generation

export default function SSGPage() {
  // This function runs at build time only
  const data = {
    buildTime: new Date().toISOString(),
    staticContent: 'This content is generated at build time'
  }
  
  return (
    <div>
      <h2>SSG: Static Site Generation</h2>
      <p>This page is pre-generated at build time.</p>
      <p>Build Time: {data.buildTime}</p>
      <p>Content: {data.staticContent}</p>
    </div>
  )
}

📄 This page uses the SSG strategy!

SSG: Static Site Generation

This page is pre-generated at build time and served as static HTML.

Build Time:2025-09-05T07:32:03.495Z

Rendering Strategy:Static Generation

Cache Duration:Indefinite (until rebuild)

SSG: Static Site Generation Feature Explanation

• Build-time Generation: Content is generated once at build time

• Fastest Performance: Serves pre-built HTML files directly

• CDN Friendly: Can be cached at CDN level for maximum performance

• SEO Optimized: Search engines can easily crawl static content