How to migrate your app off Lovable, in the right order
Last reviewed 30 November 2026
Maybe a developer wants their own tools, you need your own hosting, or you just want the app to run without Lovable. The risk is the order. Move the domain too early and your customers meet a half-moved app.
First decide whether you need a full move. Many founders keep Lovable, connect GitHub and add a developer. For a full move, build the new setup next to the old one: code, environment variables, backend and data, sign-in redirect URLs, uploaded files and backend functions. Test it on a temporary address, copy the final data, and move the domain last.
Rather talk it through with someone? Tell us about your app →
Three ways to leave, and two of them keep Lovable
Lovable’s ownership guide (opens in a new tab) says your code and data are yours, and that you can move part of your app or all of it. Its advice is to move parts “only when you hit a real constraint, not a hypothetical one.”
| Option | What it means | Good when |
|---|---|---|
| Stay, with GitHub sync and a developer | Lovable keeps building and hosting. A developer works in the same repository, on their own branch, with their own tools | You like the Lovable editor and need help with the hard parts |
| Partial move | Keep building in Lovable, but run the live app on your own host, or move the backend to your own Supabase project | You need your own hosting, or the database in your own account |
| Full move | Code, hosting, backend and data all leave, and development moves to tools such as Claude Code or Cursor | You want the app to run without any Lovable service |
For a partial move, follow our guides to getting your code out and hosting it elsewhere or moving the backend to your own Supabase. The rest of this guide is about the full move.
What you give up with a full move
Lovable’s external hosting guide (opens in a new tab) says “Each part you move becomes yours to run, update, and secure.” In practice you lose:
- The Lovable editor: the AI agent, visual editing and the preview environments.
- Hosting that runs itself: deployments, custom domains and automatic SSL become your host’s job, and yours.
- The backend screens: the database, users, storage, edge functions, jobs, secrets and logs views in Lovable’s More menu.
- Managed sign-in: Lovable says managed OAuth configuration and automatic token refresh only work on its built-in backend.
- Connectors and Lovable AI: these run through Lovable. Lovable says to replace each one with your own account for that provider.
- Lovable watching the backend: monitoring, security scanning and backups become your job.
Before you start
- Get the code into a repository you own, and run it on your own computer. Our export guide covers both.
- Back everything up, including uploaded files. See backing up a Lovable app.
- List everything that still calls Lovable. Lovable says to search the code for app connectors, AI features and your built-in backend address. Each one keeps running through Lovable until you replace it.
The order for a full move
Lovable’s rule for a full move is to keep the existing app available while you prepare the replacement. Your customers keep using the Lovable version until the very last step.
- Code on the new host, on a temporary address. Lovable’s hosting guide covers Vercel, Netlify, Cloudflare Pages, containers and your own server. Apps created from 13 May 2026 run server code, so they need a host that runs it.
- Environment variables. Set them on the new host. Values starting with
VITE_are built into the app, so rebuild after you change them. Secrets your server code reads aren’t in the repository, so add them by hand. - Backend and data. Lovable’s supported destinations are managed Supabase and self-hosted Supabase. Lovable warns that moving the database alone does not move authentication, storage, realtime or Edge Functions. Restore a test export first. The steps are in our Supabase move guide.
- Sign-in and redirect URLs. Turn on each sign-in provider in the new project. Update the redirect URLs in your Google or other provider settings to the new Supabase address, and add the new app address to the allowed redirect URLs.
- Uploaded files. Download them from More → Storage and upload them to the matching buckets.
- Edge functions, secrets and scheduled jobs. Deploy the functions from
supabase/functionswith the Supabase command-line tool, set their secrets, and recreate any missing schedules. Lovable says to coordinate this with the old backend, so the same job doesn’t run twice. - Test on the temporary address. Open a page deep in the app and refresh it. Sign in and out with a moved account. Create records and upload a file. On a newer app, check pages and functions that run on the server.
- Copy the final data. Anything written after your test export isn’t in it. Stop users, scheduled jobs and webhooks writing new data, take a fresh export (Lovable allows one every 24 hours), copy changed files and restore. Time the export and restore on your test run, because they decide how long the pause is. Lovable says an app that can’t pause needs an incremental copy with a database tool of your own.
- Move the domain last. Point your custom domain at the new host. Then unpublish the app on Lovable when you no longer want the
lovable.appaddress to serve it.
Users keep their passwords, because the export includes the password hashes. Everyone has to sign in again, because the new project signs sessions with its own keys.
Retire Lovable slowly
- Don’t delete the old backend straight away. Lovable says removing the database deletes the backend permanently, including exports saved to its storage. Download and check your export and files first.
- Disconnecting GitHub is safe for the code. Lovable’s GitHub guide (opens in a new tab) says the repository stays on GitHub with all its history and files.
- Moving the code or the domain doesn’t cancel anything. Lovable says your subscription and any Cloud usage continue until you change them.
Working with Claude Code or Cursor afterwards
In Lovable you may have kept rules in its project instructions. A local AI tool doesn’t remember earlier sessions: Claude Code’s guide says each session “begins with a fresh context window”. It knows the code, and whatever you write down for it.
- Write one instructions file. Claude Code reads a
CLAUDE.mdfile at the start of every session, and its memory guide (opens in a new tab) says it can read anAGENTS.mdinstead when there’s noCLAUDE.md. Cursor supports (opens in a new tab)AGENTS.mdin the project root too, so one file can serve both tools. - Put the basics in it: how to install and start the app, where the backend code lives, and rules such as “never put a secret in a
VITE_variable”. - Don’t treat it as a safety net. Claude Code’s guide says these files “aren’t enforced configuration”. Keep changes on a branch and review them before they go live.
- Backend changes are now yours to deploy. Nobody runs your database changes or deploys your functions from a chat any more.
When to get help
If paying customers use the app, plan the move with a developer and rehearse it on test data first. When we take on a move, we start with a written audit, give a fixed quote, and keep the code and accounts in your name. See how a Lovable rescue works.
Questions founders ask
Do I have to rewrite my app to leave Lovable?
Lovable says no. Moving the app is a deployment change rather than a rewrite. The work is in the parts that run through Lovable: the data move, and replacing connectors and AI features.
Can I keep building in Lovable but host the app somewhere else?
Yes. Keep GitHub sync connected and let the other host deploy from the repository. Lovable’s Publish button still only publishes to Lovable’s own hosting.
Will my users notice the move?
They keep their passwords if the export is restored properly, but they’ll need to sign in again. Expect a short pause in new data, such as sign-ups and orders, while the final data is copied, unless you set up an incremental copy.
Does moving my app off Lovable cancel my plan?
No. Lovable says a code export or a domain change doesn’t cancel anything. Change your subscription yourself once the new setup is proven.