Link an existing site

Bring an EmDash site that already runs on Cloudflare into Fleet, read-only.

Link an EmDash site that already runs on Cloudflare, without changing it.

Before you start

  • You are a Developer, Admin or Owner, or your custom role holds sites:write. See Roles and permissions.
  • Linking is read-only. Fleet never creates, modifies or deploys anything in your Cloudflare or GitHub account. It reads the Worker, its bindings, its schedules and its domains.
  • The site is an EmDash site on a Worker with a D1 binding named DB. Fleet warns when the MEDIA (R2) or SESSION (KV) binding or a Cron Trigger is missing.
  • You have a Cloudflare connection, from a reusable connection of the workspace or from an End User link. A GitHub connection is optional. See Connect a Cloudflare account and Request access from an End User.
  • A linked site has no version history, no Deploy and no Rollback, because Fleet never writes to it. See Choose between creating and linking.

Steps

  1. Open the Sites tab and select Link existing site.
  2. Choose the Cloudflare source. Fleet shows the Workers plan and, for a new connection or an End User link, the Free limits.
  3. Choose the GitHub source, or skip it. With a reusable GitHub connection, search for the repository by name. A repository that already backs a site in Fleet is not listed.
  4. Select the Worker. Fleet highlights the Workers with a D1 binding DB.
  5. Choose the host Fleet should check: the workers.dev address or a custom domain of the Worker. Fleet requests /_emdash/api/health from it.
  6. Enter the site name and the environment tag, then register the site.
  7. If a source comes from an End User, the site waits as Awaiting permissions. When every grant has arrived, select Finish linking on the site page. It repeats steps 4 to 6 on the same site.
Choosing the Cloudflare account of the site in the first step of the Link existing site wizard.

Result

  • The site is Active and shows Awaiting first check until Fleet's first health read. See Site statuses and health.
  • Without GitHub, the site shows "Limited mode: add GitHub to enable updates". Select Add GitHub on the site page to add a repository later. Adding GitHub changes nothing in your accounts.
  • On a linked site, an EmDash update opens a pull request and deploys nothing. Deploy from your own pipeline.

If something goes wrong

The host did not answer as an EmDash site:

<host> did not answer as an EmDash site: <observation>. Check that the site is live and that its WAF allows the User-Agent `EmDashFleet-HealthPoller/1`, then try again.

Repository already in use:

This repository already backs a site in Fleet. Choose another repository.

First health read pending:

Awaiting first check: Fleet reads this site's health within 5 minutes.

At the plan limit:

The free beta covers up to <n> <sites, team members, workspaces or API tokens>. To ask for a higher limit, open a ticket under Support and tell us how many you need. We reply within 2 business days.

If Cloudflare Access or a WAF rule blocks the health check, see Allow health checks behind Access or a WAF. Never send a token, a password or an API key to support.

Related

Report a problem with this page