# Moving a Lovable app off Lovable: what comes with you

> 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.

Canonical: https://shipfast.online/rescue/lovable/leave/
Last updated: 2026-10-25

By [Prayag Dalal](https://shipfast.online/about/). Checked against Lovable's documentation on 2026-10-25.

## Symptoms

- You want a developer to work on the code directly, outside Lovable.
- You need to run the app on your own cloud, for a client, compliance or cost reason.
- You want a copy of your code and data outside Lovable, just in case.

## 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.

## 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

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.

## FAQ

### 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.

## Sources

- [Lovable docs: Sync your project with GitHub](https://docs.lovable.dev/integrations/github)
- [Lovable docs: Git sync overview](https://docs.lovable.dev/integrations/git-sync-overview)
- [Lovable docs: Back up, restore and export your database](https://docs.lovable.dev/features/database-backups)
- [Lovable docs: Optimize your app for SEO and AI search](https://docs.lovable.dev/features/seo-aeo)

## Get it fixed

App rescue, From $1,000, fixed price: [send your app](https://shipfast.online/contact/?service=app-rescue).

## Related

- [All Lovable guides](https://shipfast.online/rescue/)
- [Free production readiness check](https://shipfast.online/tools/production-readiness-check/)
