What is SSG (Static Site Generation)?
Turkish: SSG
SSG prebuilds pages into HTML during deployment, creating fast, cache-friendly sites that need little server work per request.
What is SSG?
SSG (Static Site Generation) means page HTML is generated ahead of time during the publishing process, not created on each user request. Content can come from Markdown, a CMS, or data files; the build tool outputs ready HTML, CSS, and JavaScript files for each URL.
With this approach, the server does not query a database and render a page for every visit. Files can be served directly from static hosting or a CDN. That makes SSG a strong fit for corporate websites, documentation, blogs, campaign pages, and product catalogs that are read often but changed less frequently.
Difference from SSR
SSR renders the page on the server at request time; SSG prepares the page before deployment. If stock, prices, or user-specific dashboard data changes constantly, SSG alone may not be enough. A static page can still call an API, use revalidation, or be combined with hybrid rendering.
Tools such as Astro make SSG a natural default: content pages load quickly, caching is straightforward, and the runtime attack surface is smaller. The main operational concern is making rebuild and deployment reliable whenever content changes.
Related Terms
Astro is a web framework for content-heavy sites that ships HTML first and loads JavaScript only where interaction needs it.
Cloudflare PagesCloudflare Pages hosts static sites and frontend apps through Git-based deployments on Cloudflare's global edge network.
Headless CMSA headless CMS stores content in an admin system and delivers it through APIs to websites, mobile apps, kiosks, and other channels.
Islands ArchitectureIslands architecture keeps most of a page as static HTML and hydrates only the interactive UI sections as separate islands.
JamstackJamstack is a web architecture approach based on JavaScript, APIs, and pre-built Markup for fast, secure, and scalable websites.
NetlifyNetlify deploys static sites and Jamstack applications from Git, combining build automation, a global CDN, and serverless functions.
SSR (Server-Side Rendering)SSR renders page HTML on the server for each request, sending ready content to the browser to improve first view and SEO.