
A static site generator builds your web pages ahead of time, at build time, and serves the finished files from a content delivery network. Jamstack is the wider approach: pre-built markup, JavaScript in the browser and APIs for anything dynamic. For marketing sites, blogs and documentation it is fast, simple to host and has a small attack surface. It struggles with huge sites and heavily personalised pages.
Key takeaways
- A static site generator turns content and templates into ready-made HTML files before any visitor arrives, so the server does almost no work per request.
- Jamstack pairs those files with APIs for forms, search, payments and other dynamic needs.
- The main strengths are speed, a small security surface, simple hosting and easy scaling. The main limits are long builds on very large sites, personalisation and the editing experience.
- A headless CMS plus a webhook that triggers a rebuild is the usual way to let non-developers publish.
- It suits brochure sites, blogs and documentation far better than logged-in, highly personalised applications.
- Plan redirects, metadata and testing before you migrate from an existing platform.
What does a static site generator actually do?
A traditional dynamic site builds each page when someone asks for it: the server queries a database, fills a template and sends the result. A static site generator moves that work earlier. During a build step it reads your content (Markdown files, a CMS or an API), applies templates and writes out plain HTML, CSS and JavaScript files. Those files are uploaded to a host or CDN.
When a visitor arrives, the CDN hands over a file that already exists. There is no database query, no template rendering and no application server to wake up. That is why static sites tend to feel quick and hold up well when traffic spikes.
The build step in practice
- Content is fetched from files or from a headless CMS.
- Templates and components are combined with that content.
- Images are resized and optimised.
- Output files are written to a folder.
- The folder is deployed to a CDN, often with a unique preview address for each change.
What is Jamstack and does the name still matter?
The name stands for JavaScript, APIs and markup. The idea matters more than the label. Pages are prepared in advance; anything that must be live is handled by JavaScript calling an API, either your own or a third-party service. A contact form posts to a form service. Site search calls a search API. A buy button calls a checkout API.
Many modern frameworks now blur the line. They can pre-build some pages, render others on the server and refresh a few in the background. So the practical question is not "static or not" but "which pages need to be live, and which can be prepared in advance?" Our guide to server-side vs client-side rendering for SEO and speed explains the rendering options in more depth.
What are the strengths of a static approach?
- Speed. Serving a finished file from a nearby CDN location is hard to beat for first load.
- Security surface. With no public database or admin login on the live site, there is less for an attacker to probe. You still need to secure your build pipeline, your CMS and any APIs you call.
- Hosting simplicity. Hosting is often a folder of files, with fewer servers to patch and monitor.
- Scale. A CDN can serve many visitors without you resizing servers.
- Version control. Content and code can live together, so every change is reviewable and reversible.
What are the limits and trade-offs?
Being honest about limits saves expensive surprises.
Build times on very large sites
If every change triggers a full rebuild, a site with a very large number of pages can take a long time to publish. Incremental builds and partial rebuilds help, but they add complexity.
Dynamic and personalised content
Prices that vary by user, dashboards, account areas and live inventory need either client-side API calls or server rendering. You can add these to a static site, but if most of your pages are personalised, a different architecture is probably a better fit.
Editor experience
Marketers used to a visual page editor may find a Markdown repository or a bare headless CMS unfamiliar. Without a good preview, editors lose confidence and developers become a bottleneck.
How do you pair it with a headless CMS, forms, search and commerce?
Think of the site as an assembly of services.
- Content: a headless CMS stores structured content and exposes it by API. Read headless CMS explained: when it makes sense before choosing one.
- Forms: a form service or a small serverless function receives submissions, filters spam and forwards leads to your CRM or inbox.
- Search: a hosted search service or a pre-built search index loaded in the browser.
- Commerce: a checkout or cart API embedded where needed, while product pages are still pre-built.
- Analytics and consent: scripts added carefully so they do not undo your speed gains.
Each service is another vendor to assess for reliability, data handling and cost. Keep a simple list of what the site depends on.
How do content updates reach the live site?
Editors work in the CMS. When they hit publish, the CMS sends a webhook, a small automatic message, to your build service. The service pulls the latest content, rebuilds and deploys. Typical timing is minutes, not seconds, so set expectations with your team.
Useful refinements:
- Rebuild only the pages affected when the tooling supports it.
- Refresh a few frequently changing pages in the background (often called incremental regeneration) instead of rebuilding everything.
- Use scheduled rebuilds for time-based content such as events or offers.
- Give editors a preview link per draft.
Which sites are a good fit, and which are not?
Good fits:
- Marketing and brochure sites
- Blogs and news-style content
- Documentation and help pages
- Landing pages and campaign sites
- Portfolios and event sites
Poor fits:
- Marketplaces and large catalogues with constantly changing stock and prices
- Customer portals where nearly every view is personal
- Sites where editors need to publish hundreds of changes an hour and see them instantly
- Applications that are really software products, not content sites
Many businesses land in the middle: a static or hybrid marketing site plus a separate application for the logged-in experience.
What about SEO on a static site?
Pre-built HTML is easy for search engines to read because the content is in the first response. As far as is publicly documented, search engines can also process JavaScript, but content that exists in the initial HTML is simpler and more reliable. Do the basics deliberately:
- Unique titles and meta descriptions per page, generated from CMS fields.
- A sitemap and robots file produced by the build.
- Canonical tags and clean URLs.
- Structured data where relevant.
- Image dimensions and optimised formats.
- Redirects for any changed URLs.
How would you migrate from WordPress?
- Inventory every page, redirect, form and plugin the current site relies on.
- Decide what each plugin's job becomes: a service, a build step or nothing.
- Export content and clean it, particularly embedded shortcodes and inline styling.
- Rebuild templates as components.
- Map every old URL to a new one.
- Test forms, search, tracking and metadata on a staging copy.
- Launch with monitoring and a rollback plan.
For a wider comparison, see our piece on Next.js vs WordPress for business websites.
What skills and pipeline does the team need?
You need someone comfortable with a JavaScript framework, Git and command-line builds, plus someone who owns content structure. A sensible pipeline is: code in a repository, automatic build on every change, preview deployments for review, automated checks for broken links and basic accessibility, and a production deploy on approval. Hosting is usually a managed static or edge platform, so server administration is light.
Common mistakes to avoid
- Choosing the stack because it is fashionable, not because the content suits it.
- Skipping a preview workflow, then blaming editors for mistakes.
- Adding many third-party scripts that wipe out the speed benefit.
- Forgetting redirects when URLs change.
- Treating the CMS or build tokens as low risk.
An imaginary example
Imagine a small training company with a site of marketing pages, a course list and a blog, updated a few times a week by two people. It moves to a static generator with a headless CMS. Editors publish in the CMS, a webhook rebuilds the site in a few minutes, and the enquiry form posts to a form service that emails sales. The student login area stays a separate application. The marketing site becomes quick and cheap to host, and the editors keep working in a familiar interface.
FAQ
What is a static site generator?
A static site generator is a tool that builds all of a website's pages in advance from content and templates. The output is plain files that a server or CDN can deliver instantly. It avoids running a database or rendering engine for every visitor.
Is Jamstack good for SEO?
It can be, because pages arrive as complete HTML and load quickly, both of which help search engines and users. SEO still depends on solid content, titles, internal links, redirects and structured data. As far as is publicly documented, speed is one signal among many, not a shortcut.
Can a Jamstack site have a blog, forms and e-commerce?
Yes. Blogs are a natural fit, forms are handled by a form service or small function, and commerce can be added through checkout APIs. Very large or highly personalised shops may need server rendering or a dedicated platform instead.
How do editors publish changes on a static site?
They usually edit in a headless CMS. Publishing triggers a webhook that rebuilds and redeploys the site, which normally takes a few minutes. A good setup also gives them a preview link before anything goes live.
Related reading
- Headless CMS Explained: When It Makes Sense for Business
- Server-Side vs Client-Side Rendering for SEO and Speed
- Next.js vs WordPress: Which Is Right for Your Business Site?
Next steps
List your ten most important pages and mark each as always the same, sometimes changing or personal to the visitor. If most are the same for everyone, a static or hybrid build is worth a serious look. Our website development team can help you compare options, and you can contact us to talk through your site.



