← All guides

How I moved my business off Lovable in one day

My DJ academy ran on Lovable: payments, courses, 160+ student accounts. In one day, with Claude, I moved all of it to infrastructure I own. Nobody noticed, and nobody lost their login.

Why leave at all?

Lovable is a great way to start. It got my site live fast. But as the business grew, I realised I didn't own the important parts:

Moving out means the code, the data and the bill are mine. And day to day, I now just ask Claude for a change and it's live in minutes.

The rule I followed: build the new home next to the old one, test it fully, and only then flip the switch. The live site never goes down, and the old one stays as a rollback.

STEP 01Map what's locked in

Before touching anything, have Claude read the whole codebase (Lovable syncs it to GitHub) and list every place that depends on Lovable: the database project, Google login, the email sender, AI gateways, connectors. That list is your migration plan.

Read this repo. List every dependency on Lovable services (database, auth, email, AI, connectors, secrets I can't export). For each one, tell me what replaces it if I self-host on Supabase + Cloudflare Workers.

STEP 02Your own Supabase, same schema

Create a Supabase project in your account. Then rebuild the exact schema: tables, functions, row-level security policies, triggers, storage buckets. Claude applies the migration files from the repo and compares the result to the live database until they match exactly.

Recreate the live schema on my new Supabase project from the migration files. Then compare both databases (tables, columns, functions, policies, triggers, indexes) and fix every difference.

STEP 03Copy the data, users included

This is the part people fear. Users can move with their existing passwords, because the password hashes are part of the auth table. Copy auth users and identities, then every table, then the storage files. Check that the row counts match, table by table.

STEP 04Run the site on Cloudflare

Build the same app against the new database and deploy it as a Cloudflare Worker on a staging subdomain. Put the server secrets (payment keys, email keys) in Cloudflare, never in the repo. Click through everything on staging: sign up, log in, buy, watch a lesson.

STEP 05Replace the Lovable services

STEP 06Flip the switch

At a quiet hour: run one last data sync, point the domain at the new Worker, and watch the first real logins and orders come in. Keep the old Lovable project untouched for a while, so you can roll back by restoring one DNS record.

For me this took one switch and zero downtime. Students kept learning, orders kept coming, and nobody had to reset a password.

STEP 07How I work now

Every change starts as a sentence to Claude. It edits the code, I check it on my machine, and when I say publish it deploys. No credits, no editor in between, and I own every line.

Want the video version?

I'm recording the full walkthrough, screen and all. Follow along, or email me if you're planning your own move.

← Back to yoavlevavi.com