Lovable remix or duplicate lost its backend (Supabase, secrets, integrations gone)
Symptoms
- The remixed or duplicated copy loads, but login fails for every account
- All data is empty even though the original project has rows
- Every feature that calls an API errors out
- On Lovable Cloud projects: the underlying Supabase instance does not appear anywhere in your own Supabase dashboard
Why it happens
Remix and duplicate copy source code only
Secrets, database contents, Supabase connections, and GitHub connections are explicitly not copied. Lovable creates a fresh project instance with no backend wiring at all.
The copy looks like a full clone, so builders ship it anyway
The app runs against a backend that is not there, or worse, against the original author's project if credentials were hardcoded in the source.
Lovable Cloud backends are Lovable-managed
Lovable Cloud provisions a Supabase instance that is managed by Lovable and not owned by your Supabase account, which is why users cannot find 'their' database in the Supabase dashboard.
How to fix it
- Treat the remix as frontend-onlyAssume nothing backend-related survived the copy. Plan to reconnect a backend before you test a single feature; otherwise every failure you see traces back to this one root cause.
- Connect your own SupabaseIn the editor, open the Cloud/Supabase integration and use 'Already have a Supabase project? Connect it here', or let Lovable Cloud provision a new backend for you.
- Re-enter every secretOpen Cloud > Secrets and add each key again. None carried over from the source project, so build a list from the code of every secret the app reads before you start.
- Re-run the schema setupThe SQL and migration files exist in the copied code, but they have never been applied to your new instance. Ask Lovable to re-run the schema setup (tables, RLS policies, edge functions) against the new backend.
- Reconnect GitHubThe copy has no repo attached. Reconnect GitHub from the new project's settings if you want version control.
- Move the data yourself if you need itRemix will never move data for you. Export from the original Supabase project (SQL dump or CSV) and import into the new one. This only works if you actually have access to the original backend.
How to prevent it
- Before remixing, list every secret and integration the original uses so you can rewire them deliberately
- Never hardcode credentials in a project others might remix; the copies will silently point at your backend
- After any remix or duplicate, smoke-test login, one read, and one write before building on top
- Keep schema and RLS in migration files in the repo so a new backend can be rebuilt from code
Tools that actually fix this
Recommended because they address the failure mode above, not because of the payout. Some are affiliate links; see how we choose.
A purpose-built secret scanner covering 450+ key types. Its ggshield pre-commit hook blocks a key from ever being pushed, and history scanning finds the ones you already leaked. Free for individuals.
Try GitGuardian →All-in-one appsec (code scanning, dependencies, secret detection, containers) with low-noise output, built for small teams that cannot run five separate tools. One dashboard covers several failure modes.
Try Aikido Security →Frequently asked questions
Does remixing a Lovable project copy the Supabase database?
No. Remixing or duplicating a Lovable project copies source code only; database contents, the Supabase connection, secrets, and the GitHub connection are explicitly not copied. You get a fresh project instance with no backend wiring, so login, data, and API features are dead until you reconnect a backend.
Why is my Lovable Cloud database not showing in my Supabase dashboard?
Lovable Cloud provisions a Supabase instance that is managed by Lovable, not owned by your personal Supabase account. That is why the project never appears in your own Supabase dashboard. If you want a database you control directly, connect an existing Supabase project through the integration instead.
How do I connect my own Supabase project to a Lovable remix?
Open the Cloud/Supabase integration in the Lovable editor and use 'Already have a Supabase project? Connect it here', or let Lovable Cloud provision a new backend. Then re-enter your secrets in Cloud > Secrets and ask Lovable to re-run the schema setup so tables, RLS policies, and edge functions exist on the new instance.
Can I get the original project's data into my Lovable remix?
Only by moving it yourself. Export the data from the original Supabase project as a SQL dump or CSV and import it into the new backend. Remix copies code only and will never transfer database contents.
Sources
- RapiDevelopers: Duplicating and remixing existing Lovable projects
- Lovable docs: Supabase integration
- Supabase troubleshooting: Can't access Supabase project created by Lovable Cloud
- Supabase troubleshooting: Identify whether your backend is Lovable Cloud or Supabase
- Supabase GitHub discussion #40145
Related errors
Supabase project paused for inactivity and your live app went dead
Bolt.new + Supabase: 403 Forbidden, data not saving, or the wrong project connected
Lovable API key exposed: secrets visible in your client-side code
v0 environment variables undefined: API routes 500 in production but work in preview
Bolt.new project disappeared (or chat history gone, or rollback made it worse)
The Vibe Oops briefing
One email when something ships to production that should not have. New incidents, new error guides, no filler.