Skip to main content

The Escape Hatch

Infrastructure Independence

Use our Chrome Extension to migrate from Lovable’s proprietary Supabase instance to your own Supabase project. Full data ownership, custom RLS policies, and production-ready infrastructure. Self-service migration.

This Is Not “Just Moving a Database”

You’re buying complete infrastructure independence:

Data Migration

All tables, rows, and relationships transferred to your Supabase

Auth Migration

User accounts, passwords (with reset), OAuth connections

RLS Policies

Row Level Security rules ported and tested

Edge Functions

Serverless functions transferred and reconfigured

Database Functions

PostgreSQL functions and triggers preserved

Why 3 Credits?

When you have 370 tables, you’re not buying a script. You’re buying insurance.
The Polish client story: Their Lovable app had grown to 370 tables with complex relationships and custom RLS policies. A manual migration would have taken weeks and risked data corruption. What the 3 credits cover:
  1. Analysis & Planning (0.5 credits)
    • Schema mapping
    • Relationship analysis
    • Migration strategy
  2. Data Migration (1 credit)
    • Table-by-table transfer
    • Foreign key preservation
    • Data validation
  3. Auth & Security (0.5 credits)
    • User account migration
    • OAuth reconfiguration
    • RLS policy porting
  4. Edge Functions (0.5 credits)
    • Function code migration
    • Environment setup
    • Testing
  5. Testing & Validation (0.5 credits)
    • End-to-end testing
    • Security verification
    • Performance checks

The Only Caveat: Password Resets

Auth sessions cannot be migrated. Users will need to reset their passwords.
This is a technical limitation, not a choice:
  • Supabase auth tokens are tied to the project
  • Sessions are cryptographically bound
  • OAuth providers need reconfiguration
How we handle it:
  • Pre-migration: Email users about upcoming change
  • Post-migration: Trigger password reset flow
  • Alternative: Magic link login for seamless transition

What’s Included

The Lovable Cloud to Supabase Chrome Extension provides a guided, self-service migration:
Every table, every row, every relationship:
  • PostgreSQL schema recreation
  • Data integrity validation
  • Index and constraint preservation
  • Enum and custom type migration
  • Guided step-by-step process in the Extension
Your security model, preserved:
  • All RLS policies ported
  • Policy testing and validation
  • Extension validates policies post-migration
  • Permission verification
User accounts transferred:
  • Email/password accounts
  • OAuth provider connections
  • User metadata preservation
  • Password reset flow setup
  • Extension guides user communication
Serverless logic preserved:
  • Function code migration
  • Environment variables
  • Secrets management
  • Trigger reconfiguration

How It Works

  1. Install the Chrome Extension
  2. Connect your Lovable project (read-only)
  3. Connect your new Supabase project
  4. The Extension guides you through each migration step
  5. Execute migration with one click
  6. Verify and test in your new Supabase

The Migration Process (Chrome Extension)

1

Install Extension

Get the Lovable Cloud to Supabase extension from the Chrome Web StoreInstall Extension →
2

Connect Lovable

The Extension analyzes your current setup:
  • Table count and complexity
  • RLS policy audit
  • Auth provider configuration
  • Data volume estimation
3

Connect Supabase

Link your new Supabase project:
  • Enter project URL
  • Provide service role key
  • Extension validates connection
4

Schema Migration

The Extension recreates your database structure:
  • Table definitions
  • Relationships
  • Indexes
  • Constraints
  • Progress tracking
5

Data Transfer

Move your actual data:
  • Batch transfers with resume capability
  • Relationship preservation
  • Real-time validation
  • Error handling with retry
6

Auth Migration

Transfer user accounts:
  • User metadata
  • OAuth connections
  • Email confirmations
  • Password reset setup guidance
7

Security Porting

Migrate RLS policies:
  • Policy recreation
  • Built-in permission testing
  • Security validation
8

Verify & Complete

The Extension validates:
  • End-to-end testing
  • Row count verification
  • Policy enforcement checks

When Do You Need This?

The Trigger: You’re about to go live and need your own infrastructure.Why Now: Can’t launch on Lovable’s shared backend. You need:
  • Dedicated resources
  • Custom domain
  • Direct database access
  • Full control

What’s Different After Migration?

FeatureLovable’s BackendYour Supabase
Database AccessLimitedFull PostgreSQL
RLS PoliciesBasicAdvanced
Edge FunctionsRestrictedFull access
Custom DomainNoYes
Direct SQLNoYes
BackupsManagedControlled
MonitoringBasicAdvanced

What’s NOT Included

Storage/Files: Storage buckets and file uploads are not migrated as part of this service. You’ll need to:
  • Set up new storage buckets in your Supabase
  • Re-upload files or migrate them separately
  • Update file references in your database
Why? File migrations are complex, time-consuming, and often require different strategies based on volume and access patterns. We focus on the critical database and auth infrastructure.

Prerequisites

Before we start:
  • Lovable app is functional and stable
  • You’ve purchased 3 migration credits
  • You have a Supabase account (or we’ll create one)
  • You understand the password reset requirement
  • You’ve notified users about upcoming changes

Next Steps

Just need the frontend code? Start with the CLI for 1 credit. Add Cloud Migration later when you’re ready.