Skip to content

Migrate to Comwit Cloud

These guides move an existing app onto Comwit Cloud: your app runs on the brrrd runtime (Next/V8 isolates) and its database lives on Louhi (libSQL). They are written as runbooks — concrete file edits and commands — so a coding agent can execute the migration for you.

You are on…Follow
A Next.js app (any host, no Cloudflare coupling)From Next.js (15 & 16)
A Next.js app on Cloudflare Workers/Pages using D1From Cloudflare Workers + D1

If you have Cloudflare and D1, use the Cloudflare guide — it includes the database move. If you are on Cloudflare but use an external database (not D1), follow the Next.js guide for the runtime and just point your existing database connection string at your app’s environment.

Whatever you are coming from, the migration is the same four moves:

  1. Build for brrrd — add @brrrd/adapter to your Next config and build. The adapter emits a deployable package (dist/brrrd).
  2. Provision a database — create a Louhi database with comwit databases create (skip if your app has no database, or keeps an external one).
  3. Point your app at it — for D1 apps, swap the database client to libSQL; set DATABASE_URL / DATABASE_AUTH_TOKEN.
  4. Deploycomwit apps create then comwit deploy --package ./dist/brrrd, optionally binding a custom hostname.
  • Install and sign in to the comwit CLI — see Install the CLI & sign in.
  • Know your project id (comwit projects list). Everything is created under a project.
  • Node + your package manager (the examples use pnpm; npm/yarn work too).