Last checked against Lovable's documentation on 28 November 2026. Lovable changes its product often, so check the pages linked below before you start a real move.
You built an app in Lovable and now you want it on your own GitHub and your own hosting: for cost, for control, because a client asks where the code lives, or because you have outgrown the editor. The good news is in Lovable's own words: your apps and code are yours, and the page says you are never locked in - Lovable, hosting and ownership. The same page says moving the app is a deployment change, not a rewrite. The real work is in the data and in the services that quietly ran through Lovable.
This guide walks the move in the order that avoids the usual surprises, and it is built around the list of what does not come with you.
Step 0: Find out which kind of app you have
Lovable's documentation distinguishes two kinds. Older React and Vite apps build to static files that any static host can serve. TanStack Start apps, new from 13 May 2026, run server code and need a host that runs that server code too - Lovable, hosting and ownership. A TanStack Start app does not run from object storage or a CDN alone - Lovable, external deployment. Open the repository you export in Step 1 and look at the framework before you pick a host, because that choice decides everything in Step 3.
Step 1: Get the code onto your own GitHub
Lovable's Git sync creates a new GitHub repository and starts two-way sync automatically: changes made in Lovable go to GitHub, and changes pushed to the active branch sync back. Repositories it creates are private by default on every plan - Lovable, GitHub. Three limits matter for a move:
- It cannot connect to an existing repository. The documentation says Git sync always creates a new one, and reconnecting after a disconnect creates another new one - Lovable, GitHub.
- Do not delete the repository while you are still syncing. Deleting it stops the sync; restoring it on GitHub resumes it - Lovable, GitHub.
- Disconnecting keeps your copy. Sync stops, the repository stays on GitHub with its history and files, and the project stays in Lovable - Lovable, GitHub.
If you need the repository under another account or organization, transferring it keeps sync going only when your workspace has a GitHub connection for the new owner, otherwise Lovable disconnects the project - Lovable, GitHub. Git sync is available on all plans, while the codebase .zip download requires a paid plan - Lovable, hosting and ownership.
Two common sync problems have documented answers. If commits you pushed do not appear in Lovable, they are probably on a branch other than the synced one. If Lovable's push lands on a branch called lovable-sync, GitHub rejected the push to the synced branch, often because of branch protection - Lovable, GitHub.
Step 2: Read what does not come with you
This is the step most guides skip, and it is where moves go wrong. Lovable's external deployment page lists what is not carried over - Lovable, external deployment:
| Not carried over | What to do |
|---|---|
| Secrets stored in Lovable | Re-create each one at the new host. They are not in the repository |
| Edge Functions | The code is in supabase/functions/; deploy it with the Supabase CLI (npx supabase functions deploy) |
| Scheduled jobs | Inventory them and recreate the missing schedules at the destination |
| App connectors | "Connections are not exported", so reconnect each one |
| AI features | Model calls run through Lovable until you replace them with your own provider |
| Data written after the export | Records written after your export are not in it |
| Lovable Cloud storage | Exports saved to Cloud storage are no longer accessible afterwards, so download your export and storage files before removing Cloud |
| Managed OAuth and automatic token refresh | These work only on the built-in backend |
The ownership page adds the one that surprises people most: Git sync and the codebase download include source files and migration files, but not the database contents or uploaded files. Export those separately and verify them at the destination before retiring the original - Lovable, hosting and ownership.
Step 3: Deploy the frontend
From Lovable's external deployment page - Lovable, external deployment:
- The build command is
npm run build, with Node.js 22. - Vercel needs no output directory setting. On Netlify and Cloudflare Pages, set the publish or build output directory to
dist. - For TanStack Start apps, Nitro detects Vercel, Netlify and Cloudflare Pages automatically, so no preset is needed. Do not use the Nginx
try_filesfallback from the older examples, because the server handles routing. - For older React and Vite apps, every route must serve
/index.html: a_redirectsfile on Netlify and Cloudflare Pages,vercel.jsonon Vercel,staticwebapp.config.jsonon Azure Static Web Apps,firebase.jsonon Firebase, rewrite rules on Amplify. On object storage or a CDN, use a rule that returnsindex.htmlwith a 200 status, and do not rely on the storage's own error page, which returns a 404.
If your app opens fine on the home page but a refresh on any other route shows a 404, the routing rule above is what is missing.
Step 4: Set the environment variables
The values come from the .env file, which you can read in Lovable's code editor or in your synced GitHub repository. The browser variables for both stacks are VITE_SUPABASE_URL, VITE_SUPABASE_PUBLISHABLE_KEY and VITE_SUPABASE_PROJECT_ID. TanStack Start apps also use the server variables SUPABASE_URL, SUPABASE_PUBLISHABLE_KEY and SUPABASE_PROJECT_ID, and you add whatever other secrets your server functions read - Lovable, external deployment.
One warning from the same page prevents a lot of confusion: environment variables are embedded at build time, so changing one requires a rebuild - Lovable, external deployment. If you fix a variable and nothing changes, redeploy.
Step 5: Decide what happens to the backend
You have two honest choices, and the documentation is specific about both - Lovable, hosting and ownership.
Keep the built-in backend and move only the frontend. The page says this works: you then configure the new host's environment variables, server secrets and sign-in redirect URLs. The built-in backend keeps serving authentication, storage and data.
Move the backend too. The only supported destinations are managed Supabase and self-hosted Supabase. Moving only the PostgreSQL database does not move authentication, storage, realtime or Edge Functions. Moving to plain PostgreSQL or another provider means implementing the equivalent services yourself, and Lovable does not support it. Lovable also notes that it cannot generate real secrets for self-hosted Supabase and cannot monitor or debug production infrastructure it does not control.
If you move the backend, two related checks follow. Row Level Security policies are database state, so confirm they exist at the destination and retest with two accounts using the Supabase RLS guide. And if customers pay through the app, a Stripe webhook is registered at one URL, so when its function moves the URL changes: update the event destination in Stripe and confirm Event deliveries shows a 200, as described in the Stripe webhook guide.
Step 6: Point your domain and your sign-in
Point your domain at the new host following that provider's domain and certificate instructions, and add the new URL to your authentication provider's allowed redirect URLs. Lovable's page adds three facts that avoid a double deployment: your lovable.app address stays with Lovable and keeps serving the version you last published there, the Publish button continues to publish to Lovable hosting only, and to stop the lovable.app address serving the app you unpublish it in Lovable - Lovable, external deployment.
Step 7: Cut over without losing data
Records written after your export are not in it, so the order matters:
- Deploy the frontend and backend at the destination and test them with a copy of the data.
- Freeze writes on the original: tell users, or put the app into a read-only state.
- Export the database contents and uploaded files, load them at the destination, and verify counts and a few real records.
- Switch the domain and the redirect URLs.
- Keep the original running read-only until you are sure, then retire it.
The ownership page answers the cost question that stops many people: the exported app can run without a Lovable subscription once it runs on your own hosting and no longer calls Lovable services, but while it still uses the built-in backend, AI features or connectors, those keep running through Lovable - Lovable, hosting and ownership. For where to host and what it costs, see where to deploy your app, and for whether the move is the right call at all, when to graduate from a vibe coding tool.
If you would rather hand it over
Founden wrote this guide and also sells help with this kind of move, so weigh the next paragraph accordingly.
Founden is an AI that builds and runs companies. Its finish-your-app offer opens a separate Founden project from what you can share (a public repository, a public preview, or screenshots and notes) plus one workflow to keep and one launch blocker to clear, such as getting the app onto hosting you control. Building starts with Pro at $29 a month, the account is free, and your original app, hosting and database stay on your own setup. A real move still needs your own access to your database, domain and any payment or email service, and moving data off the original is a step you control. If that fits, scope your release. If not, the steps above are the whole job.
In this topic: Building with AI
- Move a Base44 App Off Base44: What the Docs Allow
- Export a Replit App: Code, Database and Secrets Guide
- Lovable Supabase RLS: Empty Data or Error 42501 Fix
- Lovable Stripe Webhook Not Working: Paid, No Order Fix
- Gumroad Alternatives: Lower Fees, Tax and How to Move
- Carrd Alternatives 2026: Costs, Limits and How to Move
- WordPress Alternatives 2026: Costs, Security and Moving
- Kajabi Alternatives: Real Yearly Costs and How to Move
How do you build software with AI? Every guide on it
Data behind this topic: AI app builders and coding agents: free and first paid plans.