GitHub

Taking your project elsewhere

Take the code through GitHub, find out what happens to legacy database records, and host on your own Cloudflare.

Everything you build here is portable, and the exit is documented on purpose. There are three separate things to move: the code, the database, and the hosting. Each can go independently.

1. Code

  1. Open the projectIn its workspace, connect GitHub and authorize Freebuff.
  2. Choose a repositoryPush to a new repository or an existing one.
  3. Take the sourceOnce the push finishes, open the repo on GitHub to clone it or download a ZIP. Your convex/ folder — schema, queries, mutations, actions — lives in that same repo, so this is the complete source.

Check the repository before you rely on it as a backup: a push that never finished leaves an empty or partial repo. Keep secrets and environment variables separate — never commit them to a public repository.

2. The database does not travel with the code

Copying code does not copy database records, so check which database your app uses before you move it. A convex/ folder holds backend code and schema, not the records themselves.

The old Migrate to Self-Hosted Convex and Download backup buttons are no longer available in the legacy workspace. If you need legacy data, contact support with your project link and say whether you need development or production data — and do not delete the original project while that is being checked.

If you already control the database, use your provider's own backup and import options. For a Convex deployment you own, npx convex export writes a standard zip and npx convex import loads it into any deployment.

3. Data held by Sites

If the app runs on Sites, its database is D1 rather than Convex, and there is no backup button to press. The export is an authenticated endpoint plus a Wrangler import — the sequence is under moving off Sites below.

Self-hosting the frontend

git clone <your-repo> && cd <your-repo>
# set the names your .env.example documents, usually:
#   CONVEX_DEPLOYMENT
#   VITE_CONVEX_URL
npx convex deploy
# then host the build output anywhere: Vercel, Netlify, your own server

Moving off Sites to your own Cloudflare

Freebuff Sites runs on Cloudflare Workers for Platforms, so a site is already a Worker. Moving it to a Cloudflare account you own raises the quotas — the free plan has much higher daily limits — and it is the recommended fix when a project outgrows the shared pool.

Steps

  1. Create a Cloudflare accountThen ask the agent to migrate the site to your account.
  2. Set up storageObject storage becomes Cloudflare R2, which needs a credit or debit card on the account. Without one, use an S3-compatible alternative, or remove the features that need object storage.
  3. Export the databaseWrangler cannot dump the database directly. Add an authenticated endpoint to your deployment, dump through it, then import with Wrangler into the new database.
  4. Skip _cf_KVThat table is unreadable in D1 and will break a dump script. Exclude it explicitly.
  5. Copy the filesDownload objects in the sandbox and upload them to R2 (or the alternative). An authenticated endpoint is the practical way to get them out in bulk.
  6. Recreate configurationBindings, secrets and environment variables are not exportable; set them on the new account and deploy.

Do not route the old and new deployments at the same database. Copy the data, cut DNS over, and keep the old environment read-only for a day so you can compare.

What you leave behind

  • The Freebuff preview/production convenience and its shared quotas.
  • Collaborator access through Freebuff — teammates need their own access to your repository and Cloudflare account.
  • Nothing else: the code, the schema and the data are all yours, and the repo is the same one you already had.