The short answer

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

What’s actually going on

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

What Lovable already handles

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.

Code download

Download the codebase from Project settings → Git or the code editor, on paid plans.

Database export

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.

CSV per table

Download any single table as CSV from the Database view.

Fix it yourself

Step by step

In this order. Most apps get most of the way with these alone.

  1. Connect GitHub first

    Sync the project to a repository you own, so you have the full code history before anything changes.

  2. List what the export leaves out

    Storage files, edge functions, secrets, sign-in provider settings (Google, Apple and others) and API keys. Write down where each lives today.

  3. Export the database

    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.

  4. Set up the new backend and rendering

    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.

  5. Rehearse, then switch

    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.

Where it still goes wrong

  • Email-and-password users keep their accounts, because password hashes are exported. Social sign-in needs new provider settings, and everyone’s session ends at the switch.
  • Older React + Vite apps lose Lovable’s crawler pre-rendering once self-hosted. Plan server rendering or pre-rendering, or search visibility drops.
  • Anything written to the old app after your export is lost unless you pause writes or export again just before the switch.

When to bring in a developer

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

Common questions

Can I take my code out of Lovable?

Yes. Sync it to GitHub, GitLab or Bitbucket, or download the codebase on a paid plan.

Will my users have to sign up again?

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.

Can I keep using Lovable after connecting GitHub?

Yes. Git sync is two-way, so you can keep building in Lovable while a developer works in the same repository.

How big a database can Lovable export?

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.

Want your Lovable app production-ready?

Send me the app and what’s worrying you. You get a written scope with a fixed price before any work starts.

Book a 30-minute call