Site Speed

30-90 minAdvanced

Enhance site speed using Rendering strategies (SSG, SSR, ISR) and caching.

Prerequisites

  • Understanding of Server vs. Client Components
Advanced Recommended

Rendering Strategies

Static vs Dynamic.

1

Static Generation (SSG)

1

Prefer Static Site Generation for content that doesn't change often (e.g., Blog posts, Marketing pages).

2

These pages are cached on the CDN edge and served instantly.

2

Incremental Static Regeneration (ISR)

1

Use revalidate in your fetch calls or page config to update static content periodically without a full rebuild.

Example
export const revalidate = 3600 // revalidate every hour

Verification Checklist

  • Check the build output to see which pages are Static (Circle) vs Dynamic (Lambda).
  • Test Time to First Byte (TTFB) using Lighthouse or WebPageTest.