How do I migrate off Lovable without losing my data or users?
The short answer
Sync your code to GitHub, export the Lovable Cloud database as a .backup file, download your storage files, then restore all of it on a host that runs a Supabase-compatible backend so your code works unchanged. Rehome does the restore in one step, keeps your users' passwords, and puts the app on a preview address before you switch.
People leave Lovable for a few reasons: Cloud usage costs that grow with traffic, wanting to keep building in Claude Code, or wanting full control of their data. Whatever the reason, the app has four parts to move: code, database, users and files.
What Lovable lets you export
As of November 2026, Lovable’s documentation describes these exports:
| Part | How to get it |
|---|---|
| Code, including edge functions | GitHub sync from your Lovable project |
| Database, with auth users | More → Database → Manage → Settings → Export project data → Database → Export. You get a PostgreSQL .backup file by email. |
| A single table | CSV export from the Database view |
| Storage files | Download from More → Storage |
| Secrets, sign-in settings, API keys | Not exported. Write down the key names. |
The database export needs the project to be running (resume it if it’s paused), works once every 24 hours, and restores with pg_restore on Postgres 16 or newer. Lovable doesn’t give you a direct database connection, so the export file is the way out.
Steps to move it yourself
- Sync the code to GitHub and clone it to your computer.
- Export the database as above and wait for the email.
- Download storage files, one folder per bucket.
- Stand up a Supabase-compatible backend. Your code uses
supabase-js, so it expects Supabase’s database, auth, REST and storage APIs. A Supabase project of your own, or a self-hosted Supabase stack, works. - Restore the backup selectively. Restore your app’s own schemas in full. From the
authandstorageschemas, restore only users, identities, buckets and file records. Restoring the whole dump over a fresh Supabase project fails on roles and system tables. - Upload the files into the matching buckets.
- Redeploy the edge functions and set their secrets.
- Point the code at the new backend: the Supabase address and public key in your environment variables. Fix any stored links that point at the old project.
- Check the counts. Compare row counts, user counts and file counts with the export before you switch.
- Switch your domain once the new copy works.
Steps 4 to 9 are where most moves go wrong. They’re also the steps Rehome does for you.
How Rehome does it
Give Claude three things: the cloned repo, the .backup file and, if you have them, the storage files. Then say “move my Lovable app here”.
- Rehome gives the app its own Supabase-compatible backend (Postgres, auth, REST and storage), so your
supabase-jscode runs unchanged. - It restores the export selectively: your tables in full, plus users, identities, buckets and file records. Users keep their passwords.
- Edge functions are bundled and run as Cloudflare Workers.
- Stored links to the old backend are rewritten.
- Every count is checked against the export, and you get a validation report.
- The app goes to a preview address. Your Lovable app isn’t touched. You promote the preview when you’re happy.
Moving our Lovable test app (2 tables, 9 rows, 3 users with passwords and 2 files) took about 12 seconds, and every count matched.
Self-serve moves are unlimited on every plan, including Free. For a large app, the done-for-you move costs $99 to $299 once. Compare the two options in Rehome vs Lovable Cloud.
Questions
Will my Lovable users have to reset their passwords?
Not if the new backend restores Lovable Cloud's auth users with their password hashes. Lovable Cloud is built on Supabase's open-source foundation, so the hashes carry over. Rehome restores them, and users sign in as before.
How do I export my Lovable Cloud database?
In Lovable, open More, then Database, Manage, Settings, Export project data. Choose the Database card and start the export. Lovable emails you when the PostgreSQL .backup file is ready. You can run one export every 24 hours.
Does the database export include my files and edge functions?
No. Download storage files separately from More, then Storage. Edge function code comes with your code through GitHub sync. Secrets and sign-in settings aren't exported, so note your key names before you start.
Does my Lovable app keep running while I move?
Yes. Exporting doesn't change the live app. With Rehome the moved app runs on a preview address first, and you switch your domain only when you're happy.