Skip to content

A Client-Editable Website for Free: Next.js, TinaCMS and Cloudflare Workers

A site the owner edits on the page itself, free for commercial use: Next.js renders it, TinaCMS keeps the content in Git, and Cloudflare Workers builds and serves it. How the parts fit, what each costs and where the stack stops.

Cover: a logistics company's one-page site, its hero of stacked containers, its figures and its service cards, beside the TinaCMS, Next.js and Cloudflare marks, with the file name content/home.json

A site the owner edits after launch

Small company sites change in small ways: a new phone number, a price line, a fresh photo of the fleet, this year's figures. The classic answer is a CMS with a login, a database and a monthly host. This series builds the same result from three services that each do one job, all on free plans that allow commercial use: Next.js renders the site, TinaCMS keeps the content in the Git repository and gives the owner an editor on the page itself, and Cloudflare Workers builds and serves it.

The worked example throughout is a one-page site for a logistics company: a hero slider, an about block with figures, services, industries served, a four-step process and a contact section. Every word, number and picture on it is editable by the owner, and the running cost is the domain.

A logistics company's one-page site: a hero of stacked shipping containers under the heading Storage and power wherever you work, with the menu and a Get a Quote button across the top
The worked example: one page, with every word, number and picture in the owner's hands.

The parts and their jobs

PartJobFree plan
Next.js 16Renders the page at build time, resizes pictures through next/imageOpen source
TinaCMSSchema for the content, the on-page editor, a typed client for reading contentOpen source
Tina CloudEditor logins by email, saves written to GitHub as commits, the content API at build timeTwo editors
GitHubHolds the code and the content; every save is a commitFree private repositories
Cloudflare WorkersServes the page, its files and resized pictures100,000 Worker requests a day, static files unmetered, commercial use allowed
Workers BuildsBuilds and deploys on every commit to the production branch3,000 build minutes a month

The page itself is static. It is built once per change and served from Cloudflare's static file storage, so a visit runs almost zero code, and the free limits on code (10 ms of CPU per request) leave a static page plenty of room.

How an edit reaches the live site

  1. 1

    The owner opens /admin on the live site

    • signs in through Tina Cloud with an email and password
  2. 2

    Clicks a heading and types

    • the page updates in the editor as they type
  3. 3

    Save

    • Tina Cloud commits content/home.json to main as tinacloud-app[bot]
  4. 4

    The commit starts Workers Builds

    • install, tinacms build, next build, OpenNext
  5. 5

    Deploy

    • a new Worker version and fresh static files on Cloudflare's network

The repository holds the whole site: code, content and history. Rolling an edit back is reverting a commit, a developer's work and an owner's edits share one history, and moving the site to another host takes the repository alone.

A full build of the example site takes a little under five minutes on its first run: about 10 seconds to start, 2 to clone, 2 minutes 38 seconds to install packages, 1 minute 34 seconds to build and 24 seconds to deploy. Later builds restore the package and build caches from the first. Since every save is a build, an owner who edits several sections and saves once triggers one build.

Why a Git-based CMS for a small site

A database CMS such as WordPress keeps content in a database. The host runs that database, a preview link needs a server from day one, and a move between hosts means exporting and importing the database, with a local copy and the live one drifting apart in between. For a site whose content fits in one JSON file, the database is overhead.

A hosted content store such as Sanity or Contentful shines with hundreds of linked documents, instant per-page refreshes and many editors. A single page uses a sliver of that.

A Git-based CMS keeps the content as a file beside the code. The build reads the file, the editor writes it, and Git keeps every version.

Git-based editors compared

EditorHow the owner editsEditor loginFree plan
TinaCMSClicks text and pictures on the page itself, a sidebar form beside itEmail and password through Tina CloudTwo editors
KeystaticForms beside a previewGitHub, or email through Keystatic CloudThree users on Keystatic Cloud
Pages CMSHosted formsEmail inviteFree
Decap CMSFormsGitHubOpen source
Sveltia CMSForms, a modern rebuild of DecapGitHubOpen source
CloudCannonVisual editing on the pageEmailPaid plans, around $55 a month

TinaCMS is the free option with click-on-the-page editing and an email login, which suits an owner who signs in like any other web app and leaves GitHub to the developer.

Where to host it

Three hosts build a Next.js site from a Git commit for free. Their rules on commercial sites and on deploys decide the fit:

HostCommercial site on the free planWhat a CMS save costsFit for this stack
Vercel HobbyPersonal projects only; a client site belongs on Pro at $20 per member per monthA deploy, within Hobby's monthly allowancesBest Next.js support, paid for client work
Netlify FreeAllowedAbout 15 of 300 monthly credits per production deploy, roughly 20 deploys a monthTight for an owner who saves often
Cloudflare Workers FreeAllowedBuild minutes from 3,000 a month, about a thousand saves at a three-minute buildFree for client work

Cloudflare wins for a static client site. Part 5 compares Vercel and Cloudflare in depth, feature by feature, for sites that lean on Next.js's server features.

What the owner sees

The owner opens /admin on the live site and signs in with the email and password Tina Cloud sent with the invite. The page loads inside Tina's editor with a sidebar listing the sections. Every editable element carries a dashed outline; a click opens that field in the sidebar, and the page redraws on every keystroke, so the owner sees the change in place before saving.

The editor beside the page: a form for the first hero slide with its label, heading, text and background picture, and the page showing the coloured heading as it is typed, with Save ready
The page redraws with every keystroke, and Save commits the change.

Lists such as the hero slides, the service cards and the figures show as cards in the sidebar, each labelled by its own name. The schema decides what the owner may change: in the example, the page itself stays one page (it can be edited, while adding or deleting pages stays off), the figures carry an icon picked from a dropdown, and pictures upload through a media manager into the repository's images folder.

What it costs

ItemCost
Next.js and TinaCMSFree, open source
Tina CloudFree for two editors
GitHubFree
Cloudflare Workers and Workers BuildsFree within the limits above
DomainThe registrar's yearly fee
Workers Paid, for a site that outgrows the free limits$5 a month per account

Where the stack fits and where it stops

It fits brochure sites, one-page sites, landing pages, blogs and article libraries (one file per post, the list page and every post built static), and catalogues that take orders by WhatsApp or a quote form.

Its edges are clear:

  • A shop with a cart, stock and payments belongs on a commerce service, with prices and stock read live at request time.
  • A site with thousands of pages that change by the hour suits a hosted content store with per-page refreshes, and a host that runs them simply; Part 5 covers that trade.
  • A third editor moves Tina Cloud to a paid plan.
  • A media-heavy site points Tina's media at an external store such as Cloudinary or S3, and video lives on a video host or in object storage, pasted in as a link.

The series

Websites & AppsSites, stores and web apps on Shopify, Framer, Webflow or custom code, integrations with CMS, CRM and more, servers, and security.

Sources

Published
Author
Simon Booban

Resources

More episodes

View all

Ready when you are

Tell us what you need and a written quote comes back within a working day.

Phone or WhatsApp
Services

By sending, you agree to our Privacy Policy and Terms.

or connect with us via:
WhatsAppEmail