How to move from Lovable Cloud to your own Supabase project
Updated First published
In this guide (7)
This guide only uses facts from Lovable’s docs on the built-in backend, the Supabase integration, backups and exports, removing a database and hosting outside Lovable, and Supabase’s docs on migrating between projects and moving users. Checked October 27, 2026. Menus and limits change, so check those pages before you start.
The short answer: there’s no switch
Lovable Cloud is what Lovable’s docs call the built-in backend: the database, user accounts, file storage and server code Lovable runs for your app. Lovable built it on Supabase’s open-source foundation, but it isn’t a Supabase account you own.
Lovable’s docs are clear about moving it to your own Supabase project:
- No one-step move. “Lovable does not move a project from the built-in backend to your own Supabase project in one step.”
- No connect button for this case. In a project, the Settings → General → External Supabase → Connect option “appears on projects that don’t have a backend yet.”
- Remix doesn’t help. A remix of a project on the built-in backend is another project on the built-in backend.
- No way back. Moving from Supabase to the built-in backend isn’t supported.
What Lovable does offer is a documented manual move. The rest of this page follows it.
Should you move at all?
Lovable’s docs suggest connecting your own Supabase when you want to own the backend: your own Supabase account and billing, and full access to the Supabase dashboard. If your app works and you’re on Lovable Cloud for other reasons, think about what changes first.
What you take on. Lovable’s docs list what becomes your job: database availability, scaling and backups, monitoring, RLS security rules, sign-in settings, secret keys, and security scanning. “Lovable cannot monitor or debug backend infrastructure it does not control.”
What you lose in Lovable with your own Supabase project, according to the Supabase integration docs:
- The built-in backend sections in the More menu: Database (with scheduled jobs under Database → Manage), Users, Storage and Usage, plus Secrets and Logs under More → Settings. Projects on your own Supabase show Supabase there instead, and you use the Supabase dashboard.
- Daily backups with restore, pausing and resizing from inside Lovable. You manage them in Supabase.
- Sign-in emails from your own domain, which need the built-in backend. App emails from your domain still work.
- Changing sign-in settings through the chat, like social login. You do that in the Supabase dashboard.
- Testing as a signed-in user in Lovable’s browser testing, and sensitive data scanning.
- Built-in payments, on older React + Vite apps. Apps on TanStack Start (created from May 13, 2026) keep them.
Billing. Supabase is a separate account with its own billing. Lovable’s credits still pay for building in Lovable.
If the reason you want to move is that Lovable Cloud won’t turn on or keeps failing, Lovable Cloud not working covers those problems first. If your backend stopped because of credits, see My published Lovable app stopped working.
What moves, and how
From Lovable’s own table:
| Part of your app | How it moves |
|---|---|
| Database structure (tables, columns, RLS rules, functions, triggers) | The migration files in your code |
| Storage buckets and their access rules | The migration files in your code |
| Your data | The database export |
| User accounts and password hashes | The database export. Users keep their passwords but sign in again |
| Sign-in providers (Google and others) | By hand, in Supabase |
| Secrets and API keys for outside services | By hand |
| Uploaded files | Download from Lovable, upload to Supabase |
| Edge functions and scheduled jobs | Deploy the code from supabase/functions/, recreate missing schedules |
| App connectors and AI features | Replace with your own accounts. Until then they run through Lovable and use your credits |
Before you start
- Get the code out with Git sync. It’s on every plan and keeps a GitHub, GitLab or Bitbucket repository in sync with your project. Paid plans can also download the code as a ZIP. Neither includes your data or files.
- Check the export limits. Databases up to 15 GB, an export file up to 5 GB, one export every 24 hours. For more, Lovable says to contact support.
- Make sure the database is running. You can only export while it runs. If it’s paused, including for credits, wake it up first.
- Keep the old backend on. Lovable’s walkthrough keeps the app running on Lovable Cloud while you prepare Supabase, and only switches at the end.
- Ask Lovable for an inventory. Lovable’s docs suggest asking it in the project chat to walk you through the steps. The prompt below asks for the list first, without changing anything.
I want to move this project from Lovable Cloud to my own Supabase project, following Lovable's guide "Host backend and data on a managed provider". Don't change anything yet.
First list, in plain English:
1. Which stack this project uses (older React + Vite or TanStack Start) and where its migration files are.
2. The storage buckets, edge functions, scheduled jobs and secret names it uses (names only, no values).
3. The sign-in methods it uses.
4. Any app connectors or AI features that run through Lovable.
Then tell me which of these I'll need to set up again in Supabase.
Step by step
These are the steps from Lovable’s walkthrough, in its order.
1. Create the Supabase project
In Supabase, create a new project, with a strong database password and the region closest to your users. Save its project ID, project URL and public (anon or publishable) key.
2. Apply the structure
Your code has the history of every database change as migration files, in supabase/migrations/ (or drizzle/migrations/ on some projects). Lovable’s docs say to apply them in their recorded order: for Supabase migrations, from the earliest timestamp in the file name to the latest. You can paste each file into the Supabase SQL editor and run it, or, if you use the command line, link the project with the Supabase CLI and run npx supabase db push.
3. Export your data from Lovable
- Go to More → Database, select Manage, then Settings.
- In Export project data, click Export data.
- In the Database card, click Export, then Start export.
- Lovable emails you when it’s ready. Download it from More → Storage and keep a copy somewhere else.
For a single table you can open yourself, the Database view also downloads one table as a CSV file.
4. Restore the data into Supabase
This is the most technical step. Lovable’s docs say the export is a compressed PostgreSQL archive (.backup), not a SQL file you can paste into the SQL editor. It’s restored with the pg_restore tool, and you need a version that supports zstd compression.
Lovable’s advice:
- Look before you restore.
pg_restore --listshows what’s inside, and you choose what to restore. - Watch for conflicts. Your new project already has Supabase’s own tables, plus the structure from step 2. Restoring everything on top can conflict with them.
- Don’t add
--cleanwithout understanding it. It drops the objects being restored. - Test first, then check tables, records, links between tables, and that new records can be created.
If any of that is unfamiliar, this is the step to hand to a developer.
5. Set up sign-in again
In Supabase, open Authentication → Sign In / Providers and turn on each method your app uses. For Google and other providers, add the new Supabase project’s address to the redirect URLs in that provider’s settings. If sign-in later works in the preview but not on your site, see Lovable login works in preview but not on the published site, which covers redirect URLs on your own Supabase project.
Your users keep their passwords, because their password hashes are in the export. Anyone signed in has to sign in again: Supabase’s docs say a new project has a different JWT secret, so old sign-in tokens stop working. If the accounts can’t be restored, Lovable suggests giving users a password reset instead.
6. Move your files
Download your files from More → Storage in Lovable and upload them to the matching buckets under Storage in Supabase. Supabase’s docs note that restoring a database brings the files’ records but not the files themselves.
7. Set secrets and deploy server code
Secrets stored in Lovable aren’t in the export. Add each one your functions read on the Edge Function Secrets page in Supabase. Then deploy the edge functions from supabase/functions/ with npx supabase functions deploy. Compare your scheduled jobs with what exists in Supabase after the restore and recreate any that are missing, without letting both backends run the same job.
App connectors and AI features keep running through Lovable, and using your credits, until you replace them with your own accounts.
8. Test on a separate deployment
Lovable’s docs say to leave the Lovable project unchanged for now and point a separate deployment of the app at Supabase, through its settings (VITE_SUPABASE_URL, VITE_SUPABASE_PUBLISHABLE_KEY and VITE_SUPABASE_PROJECT_ID, plus the same names without VITE_ on TanStack Start apps). Where to host a vibe-coded app covers deploying the code outside Lovable. Then check that:
- The app loads without errors.
- You can create and read records.
- Sign-in works with a migrated account.
- File uploads and downloads work.
- Edge functions respond, and scheduled jobs ran.
9. Copy the latest data and switch
Anything saved after your export isn’t in it. For the final copy, Lovable’s docs say to pause new writes (users, scheduled jobs, webhooks), request a final export (remember, one every 24 hours), restore it and then switch. Time your test restore, because it tells you how long that pause will be.
To switch the Lovable project itself, open Code in Lovable:
- In
.env, replaceVITE_SUPABASE_PROJECT_ID,VITE_SUPABASE_PUBLISHABLE_KEYandVITE_SUPABASE_URLwith the new project’s values. TanStack Start apps also haveSUPABASE_PROJECT_ID,SUPABASE_PUBLISHABLE_KEYandSUPABASE_URLin the same file. - In
supabase/config.toml, replaceproject_idwith the new project ID.
From that save, Lovable’s docs say the preview and your next publish use the new backend.
10. Remove the old backend, last
Only after you’ve downloaded and checked your export and files: Lovable’s Remove database (in More → Database → Manage → Settings) deletes the database, its backups, your users, the files in storage and any export saved there. It can’t be undone. Lovable’s docs say that once the move is done, removing it stops the project using credits for it.
Common mistakes
- Removing Lovable Cloud first. It deletes everything, export included, and moves nothing.
- Switching before testing. Keep users on the old backend until a separate deployment passes every check above.
- Forgetting the security rules. Your RLS rules come with the migration files, but Lovable’s docs list checking them as your job once the backend is yours. For what a missing rule can expose, see Could my app be exposing personal data? and for error codes after the move, Database errors in a vibe-coded app.
- Expecting the move to fix messy code. A new backend doesn’t clean up the app. If every change breaks something, read Technical debt in a Lovable app first.
What we couldn’t find
- A one-click migration from Lovable Cloud to your own Supabase. Lovable’s docs say there isn’t one.
- Whether a project can use the regular External Supabase connect flow after its Cloud database is removed. The docs only say the Connect option appears on projects that don’t have a backend yet, and that removing the database is permanent. Don’t remove it to find out.
- A price for having someone do the move. Lovable lists experts at lovable.dev/experts but no prices.
Questions people ask
Can I switch my Lovable project from Lovable Cloud to my own Supabase?
Not in one step. Lovable's docs say there's no automatic migration between the built-in backend (Lovable Cloud) and your own Supabase project, in either direction. You export the database and restore it into the Supabase project, move your storage files and your code, and set up sign-in, secrets and any outside services again. Lovable's walkthrough ends by pointing the project at the new backend in two files, .env and supabase/config.toml.
Can I just disconnect Lovable Cloud and connect Supabase?
Not as a way to move your data. Lovable lets you remove the built-in database in More → Database → Manage → Settings → Remove database, but that permanently deletes the database, its backups, your app's user accounts and the files in storage, and it can't be undone. Nothing moves to Supabase. The Connect option for your own Supabase only appears on projects that don't have a backend yet. Export and download everything first.
Does remixing the project move it to Supabase?
No. Lovable's docs say remixing a project on the built-in backend produces another project on the built-in backend, so it doesn't switch the backend. The copy also gets the structure of your tables without the data.
Will my users have to reset their passwords?
No, if you restore the export into a Supabase project. Lovable's docs say the export includes your users' accounts and their password hashes, so they keep their passwords. But sessions don't carry over, so anyone who is signed in has to sign in again. Supabase's docs explain why: a new project has a different JWT secret, so old sign-in tokens stop working.
Does the export include my uploaded files?
No. The export covers the database only. Download your files from More → Storage and upload them to the matching buckets in your Supabase project. The buckets and their access rules come with your project's migration files.
How big can my database be?
Lovable's docs say it exports databases that use up to 15 GB of storage, and the export file can be at most 5 GB. You can request one export every 24 hours. For a larger database, contact Lovable support.
Can I go back to Lovable Cloud later?
Lovable's docs say migration from Supabase to the built-in backend isn't supported at the moment, and recommend that projects already on Supabase keep using it. Treat the move as one-way.
Will I still pay Lovable after moving?
Your Lovable subscription and any Cloud usage continue until you change them. Lovable's docs say a code export or a domain change doesn't cancel anything. Removing the old database stops the project using credits for it, and app connectors and AI features keep using your credits until you replace them. Supabase bills its own usage separately, under your Supabase plan. Both have free plans.
Do I need a developer?
Lovable's docs say moving a backend is developer work, and suggest asking Lovable in the project chat to walk you through the steps, or planning for a developer to help. Lovable's FAQ also points to Lovable experts, a directory of verified developers and agencies at lovable.dev/experts.
Can Lovable create the Supabase project for me?
Yes, for an app that has no backend yet. Lovable's changelog says you can ask Lovable to create a Supabase project for it. You choose the organization and the region, and Lovable creates the project there and connects it to your app. This also works in workspaces where the built-in backend is disabled. The region can't be changed later, so pick it with care, and Supabase bills the new project to your own Supabase organization. It's for apps without a backend, so an app already on Lovable Cloud still needs the manual move on this page.
New guides by email. An email when we publish a new guide, error fix or chapter, in plain English. Subscribe