Devso Labs · Guide

Vibe-Code Rescue: fixing Lovable and Bolt apps that break in production

AI app builders like Lovable, Bolt, Replit and Cursor are very good at getting you to a working demo. The trouble usually starts later: the first real users sign up, someone pays, Google tries to index the site, or you ask the AI to "just fix one more thing" and three other things break.

This guide covers the problems we see most often when founders bring us an AI-built app. It also covers what to check yourself before you pay anyone, and when a fixed-price rescue is the better option.

Why AI-built apps break after the demo

A demo only has to work for one person, on one laptop, on the happy path. Production has to work for every user, on every device, when an API is slow, when a payment retries, and when someone tries to open data that isn't theirs.

AI builders write code one prompt at a time. Each prompt is solved locally, so over time you get duplicated logic, half-removed features and settings that contradict each other. The app still looks fine, and that's what makes these problems hard to spot.

The 6 things we check first

1. Sign-up, login and sessions

Symptoms: users get logged out at random, the page refreshes with no error, password-reset links fail, or social login works in preview but not on your domain.

Usual causes: redirect URLs that still point at the preview domain, more than one auth client created in the app, or session refresh that isn't handled.

2. Database access rules (Supabase RLS)

Symptoms: often none. That's the danger. The app works, but a logged-in user can read or change other users' records, or a table is readable by anyone.

What to check: every table has Row Level Security turned on, and its policies are tested as three different people: the owner, another signed-in user, and a signed-out visitor.

3. Payments and webhooks

Symptoms: a customer paid but the app doesn't show it, a subscription never activates, or duplicate orders appear.

Usual causes: webhooks that aren't verified, that are pointed at the wrong environment, or that aren't safe to run twice (Stripe can deliver the same event more than once).

4. Secrets in the browser

Symptoms: none until someone finds them.

What to check: no service-role keys, private API keys or admin tokens in front-end code or in the public repo. Anything sensitive should move to a server or edge function.

5. Deploys, domains and environments

Symptoms: it works in the editor preview and fails on the live domain, a custom domain shows errors, or environment variables are missing in production.

What to check: production and preview use the right environment variables, the build passes cleanly, and you know how to roll back.

6. SEO and AI-search visibility

Symptoms: Google (or ChatGPT/Perplexity) can't find your pages, or shows an empty page.

Usual cause: everything renders in JavaScript, so crawlers that don't run JS see an empty shell. Missing titles, meta descriptions, sitemap and structured data make it worse.

What you can safely try yourself

  • Stop the fix loop. If the AI has "fixed" the same bug several times, revert to the last version that worked instead of stacking more prompts on top.
  • Write down the exact error and the exact steps that trigger it. This alone saves a lot of time and money.
  • Export to GitHub so you own a copy of the code outside the builder.
  • Check RLS as a different user. Make a second test account and try to open the first account's data.
  • Never paste secret keys into chat (with an AI or with a freelancer).

When to bring in help

Bring in an engineer when real users or real money are involved, when the same bug keeps coming back, or when you're about to launch, raise money or onboard paying customers. A good rescue starts by reading your code and finding the cause. It shouldn't start with a pitch to rebuild everything.

Ask anyone you hire:

  1. Will you find the cause and explain it in plain words before changing code?
  2. How will you test access rules as different users?
  3. Will the work happen in my accounts and my GitHub, with everything handed back to me?
  4. Is the price fixed, and what exactly is in scope?

How Devso Labs' Vibe-Code Rescue works

We build with Lovable and similar tools every day, so we fix what you already have instead of starting over.

  • Fixed price: $900–2,500, agreed before work starts.
  • 3–7 days, depending on scope.
  • What's covered: auth and sessions, Supabase RLS and data access, payments and webhooks, secrets, deploy and domain problems, and basic SEO rendering, depending on the agreed scope.
  • You own everything: work happens in your accounts and repo. You get a short written handover listing what we changed and what's left.
  • Optional care plan: $300–600/month to keep it stable as you keep building.

FAQ

Do you need to rebuild my app?

Usually not. Most AI-built apps can be stabilised in place. We only recommend rebuilding parts if the code review shows it's cheaper than fixing them, and we explain why.

Will you use up my Lovable credits?

We work mainly in your GitHub repo and only use the builder where it makes sense. We agree on this up front.

What do you need from me?

Access to the project (an invite or the GitHub repo), your backend dashboard (for example Supabase), a short list of what's broken, and the steps to reproduce it.

Which tools do you cover?

Lovable, Bolt.new, Replit, Cursor and v0-style React/Supabase apps. If yours is something else, ask us.