Git sync
Two-way sync with GitHub, GitLab or Bitbucket: changes in Lovable go to the repository, and pushes to the active branch come back into Lovable.
You can take the code and export the data. Moving cleanly is about the parts that aren’t in the export.
Sound familiar?
You can leave Lovable: sync the code to GitHub and export the database, which includes user accounts and password hashes. Storage files, edge functions, secrets and sign-in provider settings aren’t in the export, so move them separately and rehearse the switch with a copy of the data.
Why it happens
Your project’s code can sync both ways with GitHub, GitLab or Bitbucket, or be downloaded from Project settings → Git on paid plans. The database can be exported as a full PostgreSQL archive that includes your users’ accounts and password hashes.
Lovable doesn’t move a project to another backend in one step. The database export leaves out files in storage, edge functions, secrets, sign-in provider settings and API keys, so each of those needs its own plan.
Already done for you
Two-way sync with GitHub, GitLab or Bitbucket: changes in Lovable go to the repository, and pushes to the active branch come back into Lovable.
Download the codebase from Project settings → Git or the code editor, on paid plans.
A compressed PostgreSQL archive (restored with pg_restore) with structure, data, user accounts and password hashes. Databases up to 15 GB, files up to 5 GB, one export every 24 hours.
Download any single table as CSV from the Database view.
Fix it yourself
In this order. Most apps get most of the way with these alone.
Sync the project to a repository you own, so you have the full code history before anything changes.
Storage files, edge functions, secrets, sign-in provider settings (Google, Apple and others) and API keys. Write down where each lives today.
Run the export from More → Database → Manage → Settings, download it from Storage and keep it somewhere else. The database must be running, so resume it first if it’s paused.
Restore the archive into a new PostgreSQL database such as Supabase, recreate storage, functions and secrets, and make sure public pages are rendered for search engines on the new host.
Test the full flow on the new setup with a copy of the data, switch DNS in a quiet window, and keep the Lovable project until you’re sure.
If the steps above turn up more than you have time for, or the app already has paying users, I take Lovable apps to production: login and access rules, database and backups, payments, security, SEO and deployment.
App rescue: From $1,000, fixed price, scoped in writing before any work starts.
More in app rescue, or hire a Lovable developer.
Questions
Yes. Sync it to GitHub, GitLab or Bitbucket, or download the codebase on a paid plan.
Not for email-and-password accounts: the export includes accounts and password hashes. Social sign-in needs its provider settings recreated on the new backend.
Yes. Git sync is two-way, so you can keep building in Lovable while a developer works in the same repository.
Up to 15 GB of storage, with an export file of at most 5 GB, and one export every 24 hours. Larger databases need Lovable support.
Send me the app and what’s worrying you. You get a written scope with a fixed price before any work starts.