// From Lovable, Bolt or Replit to production
How do you move a Lovable app to your own hosting and GitHub?
Connect the project to GitHub (two-way sync, all Lovable plans), check package.json for React + Vite or TanStack Start, and deploy the repo to Vercel or Netlify with the same environment variables. Then move the backend to your own Supabase project: schema from migrations, data and users from a database export, files from storage, secrets re-added by hand.
Want it done for you? Vibe-code to Production: from €1,500, fixed quote in 24h →

By Gabriel Cazaciuc, Founder & lead developer, Netcraft Digital
Last updated
Key facts
- GitHub sync
- Two-way, on all plans; .zip download needs a paid plan
- Source: Lovable docs, Nov 2026
- Secrets stored in Lovable
- Not exported; re-add them on the new backend
- Source: Lovable docs, Nov 2026
- Database export
- One per 24 hours; users keep passwords, sessions do not carry over
- Source: Lovable docs, Nov 2026
- Supported backend destinations
- Managed Supabase or self-hosted Supabase
- Source: Lovable docs, Nov 2026
- Own hosting and Supabase with us
- From €1,500, 3–4 days
- Source: Our fixed-price offer, Nov 2026
Why move a Lovable app to your own hosting?
So that the app, the data and the bills are in your name. Lovable's docs say you own what you create and can host it anywhere. Moving makes that ownership practical: a change in a builder's pricing, limits or account status no longer decides whether your product is online.
You do not have to stop using Lovable. With GitHub sync, you can keep prompting in Lovable for interface changes while the app runs on your own host. Note one limit: Lovable supports moving from its built-in backend to Supabase, but not from Supabase back to the built-in backend.
Step 1: How do I get my Lovable code into GitHub?
Connect the project to GitHub from Lovable's Git settings. The sync is two-way: changes in Lovable are pushed to the repo, and commits pushed to the repo show up in Lovable. Git sync works on every plan; the one-time .zip download from the code editor needs a paid plan.
The repo contains the source code and the database migration files that define the schema. It does not contain your data, uploaded files or secrets. Those move separately in step 4.
Step 2: Which kind of Lovable app do I have?
Check package.json for @tanstack/react-start. Apps created since 13 May 2026 use TanStack Start and run server code; older apps are React + Vite and build to static files. The difference decides which hosting you need.
| React + Vite (older apps) | TanStack Start (new apps) | |
|---|---|---|
| Build | npm run build | NITRO_PRESET=node-server npm run build (or the host's preset) |
| Output | Static files in dist/ | A Node server in .output/ |
| Host needs | Any static host | A host that runs server code |
| Routing | Rewrite every unknown path to /index.html | Handled by the server |
| SEO on your own host | Empty HTML shell unless you add pre-rendering | Full HTML on every request |
The SEO row matters. Lovable pre-renders older apps for crawlers on its own hosting; once a React + Vite app is a static build on your host, that stops. See Lovable SEO before you switch the domain.
Step 3: How do I deploy the frontend to Vercel or Netlify?
Import the GitHub repo in Vercel or Netlify, set Node 22, and add the environment variables. For a React + Vite app, add a rewrite so that refreshing a page like /dashboard/settings does not return a 404. On Vercel, that is a vercel.json in the repo root:
{
"rewrites": [{ "source": "/(.*)", "destination": "/index.html" }]
}| Variable | Used by | Note |
|---|---|---|
| VITE_SUPABASE_URL | Browser | Embedded at build time; rebuild after changing it |
| VITE_SUPABASE_PUBLISHABLE_KEY | Browser | Public by design; only safe with correct RLS |
| VITE_SUPABASE_PROJECT_ID | Browser | Embedded at build time |
| SUPABASE_URL, SUPABASE_PUBLISHABLE_KEY, SUPABASE_PROJECT_ID | TanStack Start server | Set on the host |
| Function secrets (Stripe, AI providers) | Edge or server functions | Never with a VITE_ prefix |
Step 4: How do I move the database, users and files?
Create a Supabase project in your name, apply the schema, then restore the data. Moving the Postgres database alone is not enough: authentication, storage, realtime and edge functions have to move too.
Backend move
- Apply supabase/migrations/ in timestamp order (supabase db push or the SQL editor)
- Export the database in Lovable (More → Database → Manage → Settings) and download the file from More → Storage
- Restore the .backup file with pg_restore (it needs zstd support), on a test project first
- Check that auth users came across; their password hashes are included, so they keep their passwords
- Download storage files and upload them into buckets with the same names
- Deploy edge functions from supabase/functions/ with npx supabase functions deploy
- Re-add every secret with supabase secrets set; Lovable does not export them
- Recreate OAuth providers (Google, GitHub) and their redirect URLs for the new domain
- Recreate scheduled jobs, and stop the old ones so nothing runs twice
- Replace connectors and AI calls that went through Lovable with your own provider accounts
Step 5: How do I switch over without losing data?
Run the new deployment against the new backend on a test URL first, then do the final switch in a short window with writes paused. Lovable limits database exports to one per 24 hours, so plan the test export and the final export on different days.
Cutover
- On the test URL: refresh nested routes, sign up, sign in, sign out, read, write, upload, run each function
- Pause writes in the old app (maintenance message or read-only mode)
- Take the final export, copy files changed since the test, restore
- Update .env and supabase/config.toml in the repo to the new project
- Point your domain to the new host (custom domain guide)
- Keep the exports and files downloaded before removing the old backend
- Tell users they need to sign in again; sessions do not carry over
Can I keep using Lovable after moving?
Yes. The repo stays synced, so Lovable can keep editing the interface while your host deploys every push. Many founders also start using Claude Code or Cursor on the same repo at this point; see Lovable vs Claude Code. Before inviting real users to the new setup, run the Supabase security checklist on the new project and the rest of the production checklist.