---
title: "From Lovable to Antigravity: preserve the auth provider · Proxy Mail QA"
description: "Take a Lovable app into Antigravity without swapping its sign-in for Firebase: what the export includes, what stays behind and what to retest."
url: https://proxymail.qa/switching/lovable-to-antigravity
---

1. [Home](https://proxymail.qa/)
2. [Switching tools](https://proxymail.qa/switching)

# From Lovable to Antigravity: preserve the auth provider

Antigravity can work on a Lovable app’s source without replacing its sign-in with Firebase. Keep the backend you have, and the first comparison is about code and hosting, not two auth systems.

Updated 4 December 2026

We make Proxy Mail QA. We recommend it narrowly for fresh test accounts, auth emails and evidence of app outcomes. It does not migrate code, backends, users or passwords, or certify security.

## Changing agents does not require changing auth

Keep the existing backend initially, whether that is Lovable’s built-in one (Lovable Cloud) or your own Supabase project.

Use Lovable’s Git sync, available on all plans, or the ZIP download, which needs a paid plan and which Enterprise admins can limit. Open the repository, inspect its commands and install dependencies. This is a source handoff, not a promised import wizard or service transfer.

Check which app generation you have: new TanStack Start apps from 13 May 2026 need server-capable hosting; older static React/Vite apps differ. Do not let a generic static-hosting suggestion remove server behaviour.

Source migrations/configuration are not database contents, storage or secrets. A separate full database export can include accounts and password hashes for compatible Supabase restoration, but not sessions. Providers, redirects, secrets, storage, functions and schedules still require separate handling. Changing backend therefore needs a separate migration plan. Retaining it still requires checking the new host’s callbacks and sender configuration.

## Make the project constraints load

Use root `AGENTS.md` without frontmatter for the auth contract and test commands. Antigravity reads `AGENTS.md`/`GEMINI.md` from the workspace and parents through the repository root, not rules hidden below the workspace root. Optional `.agents/rules/*.md` need a valid `trigger`: `always_on`, `model_decision`, `glob` or `manual`. `alwaysApply` is not valid here.

List environment-variable names, never credentials. Keep values in environment/secret storage, outside instructions and chat. Ask Antigravity to explain the provider, verification gates and redirect policy before editing.

In the IDE agent panel, open **… → MCP Servers → Manage MCP Servers → View raw config** and merge, preserving existing entries:

JSON

```json
{"mcpServers":{"proxymail-qa":{"serverUrl":"https://api.proxymail.qa/mcp"}}}

```

Antigravity 2.0, the IDE and the CLI share `~/.gemini/config/mcp_config.json`. Restart, sign in through the browser and choose the baseline project. Enable/authenticate an existing entry rather than duplicating it.

## A before-and-after acceptance check

Use owned or authorised local/dev/staging only, never production. Record the pre-export build and repeat after one reviewed auth/hosting change. See the [shared switching guide](https://proxymail.qa/solve/switching-ai-coding-tools-retest-sign-up).

- Keep a stable `start_run` name; pass `run_id` to every supported call. Obtain details using `create_address` with `password: true`, or `form_values`. These do not create app users. Antigravity’s own browser or a person fills and submits.
- Capture `since` immediately before every submit, including resends, using `mark_submitted` if available. Pass it to `wait_for_code` or `wait_for_link`.
- Sign up fresh. Check unverified restrictions if required; verify, reload, sign out and sign in. Approve legitimate provider action hosts and inspect the final app destination as well.
- Reset only when a password flow supports it; otherwise mark N/A. Prove new password works, old fails and used link cannot reset again. For replacement, separately leave A unused, request B, test A against policy and prove B works. If consuming A is permitted, use an independent equivalent fixture to test B. Wait for actual expiry or report it skipped.
- If changing backend, test a synthetic staging existing-user fixture before and afterwards for sign-in, identity and access. Never use production accounts/data. A fresh signup does not prove existing-user continuity.
- Run `check_email` for SPF, DKIM, DMARC, hosts and expiry wording. Bound `count_emails` by time and `type`, `subtype` and/or `category`; welcome mail is not duplicate verification. Add app results with `add_run_note`, using `failed: true` for failed browser assertions; record skips separately, then use `finish_run`.

## A bounded request

Copy the checklist and prompt together, and replace `[authorised staging URL]` with your authorised staging URL.

Prompt

```text
Read this Lovable project and explain the loaded auth instructions.
Keep our existing provider; do not introduce Firebase for familiarity.
Identify hosting and callback assumptions. Propose one regression test
for review, then run the supplied checklist on [authorised staging URL]
before and after the approved change. Report skipped checks honestly.
If the checklist is missing, request it before running.
Record failed browser assertions with add_run_note using failed: true;
record skips separately before finish_run.
Never disable confirmation or reset the owner's password.

```

## Limits and cleanup

The provider must send to external recipients. On your own Supabase project, that means custom SMTP. `check_delivery` shows receipt evidence, not provider-log certainty. MCP exposes no email bodies and never prefetches links. Expiry wording is not server enforcement; arrival is not an all-recipient placement guarantee. SMS, social login, KYC and payments need other tests.

OAuth cannot reveal old saved passwords; use fresh accounts or a person with fixture credentials. Keep editor-independent repository tests, put `PROXYMAIL_QA_API_KEY` in CI secrets, and remove app test users separately from inboxes.

## Sources

Evidence checked 4 Dec 2026; documentation guidance, not a personally tested migration.

- Lovable: [deployment](https://docs.lovable.dev/tips-tricks/external-deployment-hosting), [ownership](https://docs.lovable.dev/tips-tricks/deployment-hosting-ownership), [builder guide](https://proxymail.qa/built-with/lovable).
- Proxy Mail QA: [Antigravity setup](https://proxymail.qa/built-with/antigravity), [flow checks](https://proxymail.qa/docs/flow-checks), [MCP](https://proxymail.qa/docs/mcp).

## Try it on your next sign-up test

Free plan, no credit card. Create an address and watch the code or link arrive.

[Create a free account](https://app.proxymail.qa/?mode=signup&from=site-switching-lovable-to-antigravity)

## Related guides

- [Lovable to Cursor](https://proxymail.qa/switching/lovable-to-cursor): Change editors first, leave the backend where it is, and check the callbacks.
- [Lovable to Claude Code](https://proxymail.qa/switching/lovable-to-claude-code): Write down the sign-up rules your Lovable chats decided before Claude Code edits anything.
- [Lovable to Codex](https://proxymail.qa/switching/lovable-to-codex): Get the exported app running where Codex can reach it before you assign a change.
- [Lovable to Qoder](https://proxymail.qa/switching/lovable-to-qoder): Have Qoder list the sign-in settings a Lovable export doesn’t carry before it patches anything.

[See every email testing problem we solve](https://proxymail.qa/solve)

Lovable is a product of Lovable. Supabase is a trademark of Supabase, Inc. Google, Antigravity and Firebase are trademarks of Google LLC. Proxy Mail QA is independent and isn’t affiliated with or endorsed by them.
