Static site development with Hugo and Astro: secure and fast

By Noiz / 19th October 2026 | 7 min

Static site development builds a website once into plain HTML, CSS and images, then serves those files. With no database and no application code running when a visitor arrives, there is far less on the live site to attack or keep updated, the server answers with a ready-made page, and the site runs comfortably on the smallest hosting plan. Hugo and Astro are the two open-source tools we recommend for building one, and on Noiz the result runs on a Legacy plan, uploaded over FTPS.

In short

  • A static site is built in advance. The server reads a file and sends it, with no database queried and no plugins run for each visitor.
  • There is much less to attack. No public login page, no plugins, no database and no server-side code to patch every week.
  • It suits sites that change a few times a week, such as brochure sites, portfolios, documentation and blogs, rather than every minute.
  • Hugo and Astro are both open source. Hugo is Apache 2.0 and Astro is MIT.
  • EmDash gives an Astro site an editing screen, but it needs a Noiz Cloud server rather than static hosting.

What is static site development, and how does it differ from a dynamic site?

A dynamic site builds each page when a visitor asks for it. On a standard WordPress install, PHP runs, the database is queried, plugins run, and the page is assembled and sent.

A static site does that work in advance. A site generator turns your content and templates into finished pages on your own computer or a build server. You upload the result, and the web server sends the right file. This suits brochure sites, portfolios, documentation and blogs that change a few times a week rather than every minute.

Why is a static site more secure?

A built static site removes most of the attack surface from the live server. The Open Worldwide Application Security Project (OWASP) describes a site's attack surface as every path for data and commands into and out of the application, and advises removing code and features you do not use. On a static site there is:

  • no login page on the public site
  • no plugins running for each visitor
  • no database to inject into or steal from
  • no server-side code to patch every week

A real example. When a serious flaw was found in the Next.js web framework in March 2025, the UK's National Cyber Security Centre noted that applications deployed as static exports were not affected.

A static site is not immune. Your hosting account and FTP password still need protecting, and any third-party scripts you embed still run in visitors' browsers. But there is much less to go wrong.

Why does a static site load quickly?

The server's part of the wait is as short as it gets. Google measures how long a visitor waits for the first byte of a page, and how long until the main content appears. On a static site the server reads a file and sends it, with nothing to build first. Astro adds to this by sending JavaScript only for the parts of a page that need it.

Why does a static site cost less to host?

It needs disk space and a web server, not processing power. A static site runs on the entry Legacy plan with room to spare, and it keeps working well when a post is shared widely and traffic jumps, because each visit costs the server very little.

What do Hugo and Astro each offer?

Both are open source, and both write a finished site into a folder you upload.

Hugo Astro
What it is A static site generator written in Go An open-source web framework
Licence Apache 2.0 MIT
Default output A static site A completely static site
Folder to upload public dist
Standout feature Built-in asset pipeline for images, JavaScript, Sass and minifying Islands approach and content collections

Hugo installs as a single program on Linux, macOS or Windows. By its own account it builds a complete site "in seconds, often less". Its asset pipeline processes images, bundles JavaScript, compiles Sass and minifies the output.

Astro adds JavaScript only where a page needs interaction. Its islands approach renders most of a page to plain HTML and adds small pieces of JavaScript for things such as a search box or an image carousel. Content collections let you keep posts as Markdown files with checked structure.

How do you give an Astro site a content editor?

Editing files suits developers more than marketing teams. EmDash, an open-source content management system (MIT licence) built on Astro and released as version 1.0 by Cloudflare in September 2026, gives an Astro site an editing screen, with plugins that run in a sandbox and get only the permissions they declare.

EmDash needs more than static hosting. It runs as an application on a Node.js server, with the pages and the editor in one deployment. It runs on a Noiz Cloud server, a self-managed virtual server with full root access over SSH, for anyone who wants an Astro site with an editor.

What does a static site need help with?

Some features need something on a server. Each has an open-source answer:

Feature Open-source approach
Site search Pagefind (MIT licence) indexes the built pages and searches them in the browser, with no server
Comments Self-hosted comment servers such as Isso or Remark42 (both MIT licence)
Contact forms A short form handler on the same hosting plan, which runs PHP

How do you publish a static site on Noiz?

Build the site on your computer and upload the built folder.

Where How you publish
Legacy Upload the public or dist folder over FTPS or through the Plesk file manager
Premium The same, or copy the built folder across with Rsync over SSH access to your own hosting account
With EmDash Run the Astro site and its editor on a Cloud server

Hugo's own guide recommends an encrypted connection rather than plain FTP, and building with a clean output folder so old files do not linger. AI assistants are good at writing static sites, too. Ask one for plain HTML and CSS, or for a Hugo or Astro project, and publish the result the same way.

Read next:

Static sites run on every Noiz shared plan; compare them on the shared hosting page. If you would like help with a static site, or with Astro and EmDash on a Cloud server, get in touch.

Sources

Checked 19 October 2026.

Hugo

Astro and EmDash

Security

Tools

Noiz

Note: while some of this content was produced with the help of AI, the final editing has been done by a real human being.