Sites

What Sites is made of, how publication really works, what each tab shows, and how previews, limits and deletion differ.

Freebuff Sites builds, publishes and runs a website for you: its address, its database, its files, sign-in for its users, and the limits around all of it. What actually ships is a Cloudflare Worker plus static assets, which is why the same button serves an API, a database-backed app and a plain marketing page.

Sites replaced the older Freebuff Web product. Existing projects were not switched automatically: they still live at freebuff.com/web and can be copied across — see legacy projects.

Environments Preview · Production
Runs on Cloudflare Workers + static assets
Resources D1 database · R2 files · secrets · sign-in · realtime
Publication slots 6 published sites · 10 saved sites

What a site is made of

  • The project — the record with a name, and the container for everything below.
  • Preview — an environment for checking work, with its own URL.
  • Production — the environment people actually visit.
  • Code and static files — the Worker and its public assets.
  • Resources, when you need them — database, file storage, secrets, sign-in, realtime.

Preview and Production deploy separately and own separate resources. Creating a database for Preview does not create one for Production, and publishing Preview does not publish Production.

Preview is not private. Once published, its address is reachable from the internet. Do not put real customer data, live keys or half-built features there unless you are willing to show them to strangers.

Creating a site

In Sites, press Create and start empty or from a template. Then:

  1. Describe the siteWhat it is for, who it is for, what it must do.
  2. Let the agent build itPages, routes and data access.
  3. Look at the previewA dev server, not a publication — see three kinds of preview.
  4. Ask for changesIterate until it is right.
  5. Publish PreviewAn address you can share.
  6. Publish ProductionA separate, deliberate step.

The chat has a Publish button that runs the build and publish without an extra turn from the agent. If it fails, Fix with agent hands the error to the agent to repair. Creating the site record and publishing it are different actions: a saved site, or even a URL, does not mean anything is being served.

Three kinds of "preview"

What it isPublic?
Dev previewA running dev server showing current changesNot a publication
Sites PreviewA published environment with its own address and resourcesYes
Sites ProductionThe main published environmentYes

A dev server can run happily for an app that will never deploy — compatibility is a separate question, so check the build in the hosting environment before you promise anyone a launch.

What happens on publish

  1. Build in the workspaceDesktop or Cloud builds the project.
  2. Package the artifactsWorker code and public assets are prepared.
  3. UploadThe finished build is sent to Sites.
  4. DeploySites rolls it out in the chosen environment.
  5. CheckPublication status and address are verified.

The Sites server does not build your source and does not run npm for you: it receives prepared artifacts. A successful upload is also not proof the site works — open it, load the pages, watch for errors, hit the API, and if there is sign-in, complete the whole flow.

What Sites will host — and will not

Sites is for Cloudflare Workers-compatible apps and static files. In practice that covers static HTML, Vite/React/Vue/Svelte frontends, Workers-compatible server handlers, and Next.js through its supported OpenNext preparation — which builds the app, the Worker and the framework cache. Uploading a plain .next folder is not enough.

  • A long-running Node, Bun or Python server, a container, or a background daemon.
  • Native addons, or anything that needs a persistent local filesystem.
  • Frameworks without a verified Workers adapter.

Even inside a supported project, a single library or route can be incompatible. None of this is a dead end: because a site is just a Worker, it can move to your own Cloudflare account — see taking your project elsewhere.

The Sites list

The list shows whether Production is published and whether a Preview exists, and surfaces states like Paused or Checking. You can create a site, search by name and open its management page. Viewing the list in the browser requires being signed in.

The management page

A Preview/Production switch sits at the top, and the tabs below belong to the selected environment.

Overview

Name and state, the time of the last deploy, attached resources, publication controls and deletion. The states mean different things:

StateMeaning
Not deployedNothing has been uploaded to this environment yet
UnpublishedA deployment exists but is not being served
DeployedA build was accepted; check publication separately
PausedAn account limit was reached; requests may stop, data stays
CheckingWaiting for fresh usage data — not necessarily over a limit

Analytics

Requests, Worker errors and the success rate over the last 24 hours. That is not a visitor count: one visitor can send many requests.

Users

With sign-in enabled: total users, new users and sign-ins for the selected period — 7, 30 or 90 days — a searchable list by name or email, and first and last sign-in when known. Sign-in statistics start from the moment the analytics are enabled and do not include token refreshes.

Database

A viewer for the attached SQL database: pick a table, page through rows. If nothing has been created yet, the panel says so. The database is D1, SQLite-compatible, suited to users, tasks, comments and saved app state — and it is queried from server-side code, not from the browser. See storage and data.

Storage

The objects in file storage with name, size and modified time, paginated. It is R2: objects, not tables. Images, uploads and documents belong here; rows belong in the database.

Secrets

Server-side values such as a third-party API key. You can add, replace and delete them; the list shows names, never values, and the value is entered in the panel rather than in the chat.

  • Deploy the environment first — secrets attach to a deployment.
  • Names are uppercase letters, digits and _, starting with a letter.
  • Some names are reserved by the platform.
  • The same name in Preview and Production is two separate secrets.
  • The project limit is 25 user variables across environments.

Never send a secret through chat, and never put one in a public asset or a repository. See API keys.

Sign in with Freebuff

  1. Visitor opens the siteand chooses to sign in with Freebuff.
  2. Authorisesin the browser.
  3. Returnsto your site with a session.
  4. Your code decideswhat that user may read and write.

Being signed in protects nothing by itself. The server has to check the user on every request and scope every query to that user's id — never to an id sent by the client. Shared boards and rooms need a separate membership check.

Local development and the published site use different callback settings, and changing the address means revisiting the sign-in configuration for the new origin.

Realtime

Sites includes managed realtime for room messages and notifications, presence, shared boards and cursors, and small room-based apps. It carries ephemeral events:

  • it does not keep permanent history;
  • it does not replay events a client missed;
  • it does not subscribe to database changes;
  • it does not replace server-side permission checks.

A chat keeps its history in the database, reloads the current state after every reconnect, and treats client-published events as untrusted. Per environment the documented ceilings are 128 connections, 32 occupied rooms and up to 32 connections in one room — environment limits, not per-user ones.

The Freebuff address

In the Domains panel, Production can take an address of the form name.freebuff.page: Latin letters, digits and hyphens, with length and hyphen-placement rules. Availability is checked as you choose, but a name can still be taken by another site at the moment you save.

Changing the address does not create a new site, and the previous address stops working — so think about links you have already shared. Preview keeps its own generated address.

Your own domain

Production accepts your own subdomain: enter it, add the DNS record the panel gives you, run the connection check, and wait for DNS and HTTPS to confirm. Then make it the primary address if that did not happen automatically. A subdomain, not an apex or a wildcard, and the record must point at the target issued for that connection. The 24–48 hour propagation window and the failure cases are in custom domains.

Publication slots

LimitValue
Published sites per owner6
Saved sites in total, published or not10

Preview and Production of one site share a single published slot — but to free that slot you must unpublish every published environment of that site. Drafts and fully unpublished sites do not occupy a publication slot, though they still count toward saved sites.

Usage limits

Usage is pooled across the owner: all sites, both environments. Requests, CPU time, database reads and writes, file operations and realtime events all draw on the same allowances, with rolling daily and monthly figures. Daily counters reset at 00:00 UTC, monthly ones on the first at 00:00 UTC; storage does not reset because data keeps occupying space.

The exact numbers, and how to spend fewer invocations, are on limits and invocations. The Limits tab shows both windows and warns at 80%. Measurements arrive with a delay, so it is not an instant meter.

Paused, Checking and what they mean

  • Paused — the last measurement reached an account limit. Sites may stop serving requests; data is not deleted.
  • Checking — the system wants fresher usage data. It does not mean a limit was hit.
  • Unpublishing does not reset usage and does not delete anything. Stored databases and files keep counting.

Unpublish and delete are different

UnpublishDelete site
Code and addressKeptRemoved
Database and filesKeptRemoved
SecretsKeptRemoved
ReversibleYes — republish when limits allowNo

Unpublishing takes the environment offline while keeping everything. Deploying new code to an unpublished environment does not make it public again. Deleting asks you to type the site name and warns that it cannot be undone — it removes both environments, the database, the files and the secrets.

If something does not work

The site does not open

  1. Check the environment and addressPreview and Production have different URLs.
  2. Check publicationDeployed is not published.
  3. Check the status and the Limits tabPaused explains itself; Checking does not.

Publishing failed

  1. Read the errorIt usually names the incompatible route or dependency.
  2. Try Fix with agentwhen the button is offered.
  3. Verify Workers compatibilityof the project and its dependencies.
  4. Open the result in a browserafter a successful publish — not just the build log.

Data is missing

  • Confirm which environment you are looking at — the database is per environment.
  • Confirm the database or bucket was created for that environment.
  • Confirm the app actually writes; in-memory state disappears with the Worker instance.

Sign-in does not work

  • Check that sign-in is actually wired into the app.
  • Check the real published address against the callback settings.
  • Complete the full sign-in and return — seeing the login page proves nothing.

The operation is stuck or its result is unknown

Do not fire a series of different changes. Deploys and provisioning have in-flight states; inspect the operation instead, and retry the same request rather than a new one with a different id.