Μετάβαση στο περιεχόμενο
Πίσω σε όλα τα άρθρα

20 Ιουνίου 2026

Why static generation is perfect for a portfolio

  • SSG
  • Performance
  • Web

A personal site is mostly static content. You write it once, it changes rarely, and thousands of people might read the same bytes. That's the textbook case for static site generation.

Three reasons it wins

  1. Speed. Pre-rendered HTML served from a CDN or nginx is about as fast as the web gets — no server render on each request, no database round-trips.
  2. Cost. Static files are cheap to host anywhere. There's no always-on server to pay for.
  3. Security. With no request-time code path, the attack surface shrinks dramatically.

The one exception

Contact forms need somewhere to send an email. Rather than give that up, this site keeps a single dynamic API route and pre-renders everything else — the best of both worlds.

Ship static by default. Add dynamic behaviour only where you truly need it.

© 2026 Dionysis Balaskas · Με επιφύλαξη παντός δικαιώματος

Φτιαγμένο εξ ολοκλήρου με AI agents