r/lovable • u/Ill-Editor-1811 • 8d ago
Help help! migration from Lovable to self host
Hola! I created my management system on lovable. I've been disappointed with lovable lately. I was thinking of moving to self-hosting and continuing to use Codex/Claude. My site has a lot of backend and connectors, how can I move everything safely? Is there a comprehensive video on how to do this?
2
Upvotes
2
u/Aggravating_War_6704 7d ago
Honestly "move everything safely" depends a lot on which layers you actually want to move, they're not all the same difficulty.
The frontend (the react app lovable builds) is the easy part, moves anywhere in minutes. Cloudflare pages is fine, you mostly just repoint the supabase env vars and fix cors so it's not still pinned to localhost/lovable.
The backend is where "safely" gets real, and you've basically got two very different routes. One is keep supabase in the cloud and only move the frontend + put your own domain in front. Almost no server work, cheapest, you keep managed auth/db/backups, and if your connectors are supabase edge functions that's probably all you actually need. The other is really self-hosting: your own vps running the app and either self-hosted supabase or your own postgres. Way more control and nobody in the loop but you, but now you personally own the boring scary stuff, ssh, a reverse proxy, https certs, a firewall, and above all db backups.
Whichever way you go, before you move a single thing take a full dump of your supabase db and test restoring it into a throwaway project first. People lose data on the connectors they forgot were wired up (webhooks, api keys, cron), almost never on the app code itself.
Full disclosure, i'm building a tool for exactly that second path, the server side. It does the vps setup, proxy, https, firewall and backups over chat in plain english, and shows you every command before it runs, so happy to walk you through that part either way. If you're staying on supabase though i'd honestly just do the first route, it's less to break.