Fix guides
Plain-English fixes for the most common breaks in apps built with Lovable, Bolt, v0, Cursor and Replit, running on Supabase, Stripe and Vercel.
Starting a new app? Try Bolt (20% off with our link) (affiliate link).
Lovable app shows a blank screen (or spins forever) after login
Why Lovable + Supabase apps freeze after sign-in, and how to fix the onAuthStateChange deadlock and stuck loading states.
Supabase Row Level Security is off: your app data may be public
If Row Level Security (RLS) is disabled or too permissive, anyone with your public key can read or edit your tables. Here is how to check and fix it.
Stripe payment succeeds, but the paid feature never unlocks
The customer was charged but their account was not upgraded. Usually a webhook problem. Here is how to trace and fix it.
Secret API key exposed in your frontend code
OpenAI, Stripe secret or Supabase service_role keys in browser code can be stolen by anyone. How to find, rotate and move them to the server.
Custom domain or SSL not working on Lovable or Vercel
Domain stuck on "Verifying", showing an old site, or a security warning? The DNS records that usually cause it and how to fix them.
Supabase Edge Function fails because a secret is missing
Your edge function returns 500 or "undefined" errors because an API key or secret was never set in production. How to find and fix it.
"Fixed it… and it broke again": escaping the Lovable fix loop
When every AI fix breaks something else and burns credits, here is how to stop the loop and get back to a working app.
Supabase sign-up or password-reset emails not arriving, or links go to the wrong URL
Users never get confirmation or magic-link emails, or the link opens localhost. Why Supabase's default email server causes it and how to fix it.
CORS error when calling a Supabase Edge Function or API from your app
"Blocked by CORS policy" or "No Access-Control-Allow-Origin header" when your app calls an edge function. What it means and how to fix it.
Lovable app not showing up on Google: SEO for single-page apps
Your Lovable site is live but not in Google results, or shares show no preview. How Lovable's rendering works and the steps that actually get you indexed.
Supabase error: "new row violates row-level security policy"
Your form or save button fails with a 403 / 42501 RLS error. Why Supabase blocks the insert and how to write a policy that lets the right users save data.
Google login redirects to localhost (or loops back to the login page)
After signing in with Google or a magic link, users land on localhost:3000 or bounce back to login. How to fix Supabase Site URL, redirect URLs and redirectTo.
Environment variables undefined after deploying to Vercel or Netlify
Works in Lovable or on your computer, but the live site says "supabaseUrl is required" or your API key is undefined. How to set env vars correctly for Vite and Next.js.
"Build failed" on Vercel: fixing deploy errors in AI-built apps
Your Lovable, Bolt or Cursor project builds fine in the editor but Vercel says "Command 'npm run build' exited with 1". How to read the log and fix the usual causes.
404 NOT_FOUND when you refresh a page or open a direct link
Your home page works, but refreshing /dashboard or sharing a link gives a 404 on Vercel, Netlify or Cloudflare Pages. The single-page-app rewrite that fixes it.
Stripe webhook failing: "No signatures found matching the expected signature"
Stripe shows failed webhook deliveries (400 or 401) to your Supabase Edge Function or API route. How to fix signing secrets, raw body parsing and JWT settings.
Images not loading from Supabase Storage (broken image or 400/403)
Uploaded photos show as broken images, or uploads fail. How to fix private buckets, storage policies and wrong URLs in Lovable and Bolt apps.
App suddenly stopped working: your Supabase project is paused
Logins fail, data will not load and requests to supabase.co error out, even though you changed nothing. Free Supabase projects pause after inactivity. How to restore and prevent it.
Supabase query returns an empty list, but the data is in the table
You can see rows in the Supabase Table Editor, but your app shows nothing and there is no error. Almost always a missing SELECT policy or a filter mismatch.
Works in preview, broken in production: the 7 usual suspects
Your Lovable, Bolt or Cursor app runs perfectly in the editor but the published site breaks. A plain-English checklist of the differences between preview and live.
Blank white screen after deploy: "window is not defined" or "localStorage is not defined"
A v0, Cursor or Bolt Next.js app works in the editor, then the live site is blank or shows a server error. The code read a browser-only API while Next.js was still rendering on the server.
Supabase Realtime: the list never updates when data changes
Chat, notifications or a live table stay stale even though rows are changing in Supabase. The channel says SUBSCRIBED, and there is no error. Here is what actually drops the events.
Prisma or Drizzle can't connect to Supabase: "Can't reach database server" or "prepared statement already exists"
The Supabase client in the browser works, but Prisma, Drizzle or postgres.js fails on Vercel or your laptop. Which connection string to copy, and the one flag each ORM needs on the transaction pooler.
Stripe Checkout fails with "No such price" after you go live
Test payments worked. Live checkout returns No such price (resource_missing). The price id and the API key are from different modes, or the code is sending a product id.
White screen after a new deploy: "Failed to fetch dynamically imported module"
The site worked, you published an update, and people who already had it open get a white screen. Vite (Lovable, Bolt) is asking for a JavaScript file the new deploy deleted.