Skip to content

Move Lovable and Supabase apps

Lovable apps run on Supabase. Sovyn gives your app its own Supabase in the EU and switches the app over to it. Your code usually stays exactly as it is. You don’t have to install or connect anything in Lovable itself.

  1. Create the project

    Create the project as described under Create a new project. The analysis reports Lovable app detected or Supabase app detected. The Move step is skipped because the code stays unchanged.

  2. Take it live

    Take the app live. Sovyn sets up your Supabase environment and connects the app to it. The database is still empty afterwards.

  3. Get the database export

    The export is well hidden in Lovable. Open your project in Lovable and click More at the top left. On the left, choose Cloud → Overview and scroll all the way down to Advanced settings.

    Lovable, More → Cloud → Overview: cards for Emails, Database, Users, Storage, Secrets and Logs, at the bottom the “Advanced settings” button

    Under Export project data, click Export data.

    Lovable, Advanced settings: section “Export project data” with the “Export data” button, below it “Pause Cloud” and “Remove Lovable Cloud”
    Click only “Export data”. Leave “Pause Cloud” and “Remove Lovable Cloud” alone, your Lovable app keeps running until the move is done.

    In the Export project data window, click Export next to Database.

    Lovable, “Export project data” window: entry “Database – Create a downloadable export of this database” with the “Export” button

    Confirm with Start export.

    Lovable, “Export database” window: note about the download link by email and the copy in Cloud storage, buttons “Cancel” and “Start export”

    Lovable creates the export in the background and emails you a temporary download link. Use it to download the ZIP. Lovable also keeps the export in its storage, as a folder named database_export_<date> under Cloud → Storage. If the link has expired, you’ll find the file there.

    If your app comes straight from Supabase, you need a full export of your Supabase database in pg_dump’s custom format instead (option -Fc, usually a .dump or .backup file). A plain SQL export (.sql) won’t work.

  4. Restore the export

    In Sovyn, open the Settings tab and the Database migration section. Choose Upload file and pick the ZIP, or choose Backup URL and enter a public https:// address where the file is stored. Click Restore.

    Sovyn, “Settings” tab, “Database migration” section: switch “Upload file” / “Backup URL” (here “Backup URL” selected), address field and the “Restore” button

    Sovyn restores the complete database: all tables, access rules and your users’ accounts including passwords. At the end you see Database imported successfully.

Anyone who signed in with email and password before signs in exactly the same way afterwards. Only users who signed in through a third-party provider (for example “Sign in with Google”) need a takeover link. Sovyn then shows you the User onboarding section, see Take over users.

The database export doesn’t contain files your app stored in Lovable storage, such as uploaded images. Sovyn doesn’t transfer those automatically yet. If your app uses such files, write to us at hallo@sovyn.eu and we’ll move them over together.

The Supabase environment isn’t running yet. Take the app live first (step 2) and restore the export afterwards.

The new database already contains something, often a test registration. Pick the file again, tick Delete and overwrite existing target data and click Restore once more.

Supabase app: tables or server functions are missing

Section titled “Supabase app: tables or server functions are missing”

For apps that come straight from Supabase, the export brings the data along. Afterwards, check in the Database tab that all tables are there. If something is missing, write to us at hallo@sovyn.eu.