Search⌘ K

Server-Side Rendered Web Application VS Static Site Generators

Explore the distinctions between server-side rendering and static site generators with Sapper. Understand how SSR dynamically serves pages via Node.js, while SSG generates static HTML files for deployment on Firebase Hosting. This lesson helps you learn deployment methods and their impact on web app performance.

Sapper provides two ways to deploy and operate our web application:

  1. Deploy a Sapper server and use server-side rendering (SSR).
  2. Use Sapper as a static site generator (SSG).

Server-side rendering (SSR)

In this scenario, we will first build the web application with sapper build. This generates JavaScript bundles at __sapper__/build, one per route defined in ...