Building a website with an admin panel and no dedicated server

A company website rarely needs a server running around the clock. The content changes a few times a week, but it is read thousands of times. That is the shape of a problem a static site solves well.

Architecture

This website has four parts, and none of them is a server we have to look after:

  1. Astro builds every page into HTML at build time. Readers receive ready-made HTML with almost no JavaScript, so pages load fast and search engines can read them immediately.
  2. Cloudflare Pages serves those pages from a global network. The free plan does not charge for bandwidth per visit.
  3. Sveltia CMS is the admin panel. When an editor saves, the CMS makes a commit to a GitHub repository. Cloudflare sees the new commit and rebuilds the site.
  4. A serverless function receives the contact form and forwards the message to Telegram or email. It runs only when someone submits the form.

The real cost

The only regular payment is the domain name. Hosting, the CMS, builds, the HTTPS certificate and the serverless function all fit in the free plans at the traffic of a business website.

There is one trade-off: content has to go through a build, so a new article takes about one to two minutes to appear. For a blog and a project catalog, that is acceptable.

Why this suits SEO

  • Complete HTML is available on the first load, with no dependence on JavaScript running.
  • Images are optimized and have declared dimensions, so the page does not jump.
  • Every page has its own title, description, canonical tag and structured data. The sitemap and the RSS feed are generated automatically from the content.

When not to use this approach

If you need user accounts, orders, or content that changes every second, use an architecture with a database and a server. For a company site, a project catalog and a blog, this is the cheapest and most durable approach we know.

Facing a similar problem?

Tell us what you are building or fixing.