🌐Static Site Generation (SSG)
Also known as SSG, Static Site Generator, Pre-rendering
Pages are built as HTML files ahead of time. Then no one has to wait.
Think of it like
Think of it like printing all the menus before the café opens. No one waits for a menu.
Example
Jack's docs site has 300 pages. A build turns them into HTML files in 20 seconds, and the host serves them for free.
Why it matters
Pre-built pages are the fastest and cheapest to serve. Nothing can break at request time.
Definition
Common mistake
Key takeaways
- 1Built ahead of time. Before anyone asks.
- 2Just files. Fast, cheap, hard to break.
- 3Rebuild to change. New content means a new build.