It is not possible to migrate users at the moment. Plan the migration before your app accumulates real users you don’t want to lose.
Key principles
-
You own your code.
Use our GitHub integration to export your code anytime. Clone, export, and self-host without restriction. -
You own your data.
Your database, storage, and configurations can be exported or migrated to another provider. -
Lovable is built on open source technologies.
Everything runs on open standards and open-source technologies. No proprietary frameworks, no hidden dependencies. - We earn your trust through quality, not control. Lovable Cloud is designed for speed, simplicity, and reliability. You can build, host, and scale confidently, knowing you can take your project with you.
Migration overview
App components | Migration method | Notes |
---|---|---|
Database schema | Automatic via SQL migrations | Includes tables, columns, indexes, RLS policies, functions, triggers |
Storage buckets | Automatic via SQL migrations | Includes access policies |
Authentication providers | Manual | Reconfigure auth (for example, Google OAuth, GitHub) in your new hosting environment |
Environment variables and secrets | Manual | Reconfigure any API keys, tokens, or credentials for external services (for example, Stripe) in your new hosting environment |
Data (table contents) | Manual | Export/import as CSV |
Storage files | Manual | Download/upload manually |
User accounts | Not supported | Migrating users is not possible at the moment - migrate before onboarding real users |
Example: Move your Lovable Cloud project to Supabase
You can connect to any backend solution with some technical knowledge. The below steps guide you how to migrate your Lovable Cloud project to Supabase. For more information on Supabase specific steps, see Supabase Documentation.1. Create a new Supabase project
Follow the steps below to create a new Supabase project.- Go to supabase.com → New project
- Choose your organization and fill in:
- Project name: any name
- Database password: strong password
- Region: closest to your users
- Click Create new project and wait around 2 minutes for the project to initialize.
- From your new Supabase project settings, save these values:
Project ID
Public API Key
(anon key)Project URL
:https://[your-project-id].supabase.co
2. Update environment variables
Replace Lovable Cloud values with new Supabase credentials in your.env
file.
- In your Lovable project, go to Code.
- Locate
.env
file. - Update Lovable Cloud values with new Supabase credentials:
- Save changes.
3. Update Supabase configuration
Replace Lovable Cloud project ID with new Supabase project ID in yoursupabase/config.toml
file.
- In your Lovable project, go to Code.
- Locate
supabase/config.toml
file. - Update Lovable Cloud project ID with new Supabase project ID:
- Save changes.
4. Run database migrations
Each Lovable Cloud project includes SQL migration files in thesupabase/migrations/
folder.
Run them in chronological order based on the timestamp in the filename. They are ordered from earliest to latest. For example:
- Copy the entire SQL content from each migration file.
- Paste it into the SQL editor in your new Supabase project.
- Run and wait for success message.
If a migration fails, check the migration order, table dependencies, and SQL syntax errors.
5. Export and import your data
Export the data from your Lovable Cloud project and then manually import it to your new Supabase project. Export each table with data from your Lovable Cloud project:- Go to Cloud → Database → Table.
- Click Export CSV.
- Save the file.
- Go to Table Editor.
- For each table, click Insert → Import data from CSV.
- Map columns correctly.
- Click Import data.
6. Reconfigure authentication
If your Lovable Cloud project requires authentication, you need to manually reconfigure auth providers in your new Supabase project.- In your new Supabase project, go to Authentication → Sign In / Providers.
- Enable and configure each provider.
- In your OAuth app settings (for example, Google Console, GitHub),
update redirect URLs to use your new Supabase project URL.
7. Migrate storage files
Download any files from storage buckets in your Lovable Cloud project and upload them to your new Supabase project.- In your Lovable project, go to Cloud → Storage.
- Download files from your storage buckets.
- In Supabase, go to Storage and upload files to corresponding buckets.
8. Set up environment variables and secrets
If you are using any external services (for example, Stripe) in your Lovable Cloud project, you need to manually reconfigure API keys, tokens, and credentials in your new Supabase project.- In your new Supabase project, go to Edge Functions → Manage Secrets.
- Add any API keys or external service credentials.
- Save changes.
9. Verify everything works
When you are done with all off the steps, your app runs entirely on your Supabase backend. Make sure that everything works, for example:- App loads without errors
- You can create and read database records
- Authentication works
- Storage uploads/downloads succeed