Fix guides for vibe-coded apps
The breakages we see most in apps built with Cursor, Lovable, Bolt, Replit, and v0, with the steps to fix each one yourself.
Free · no card
Paste your error. Get a free diagnosis by email.
Tell us what broke and we’ll email you a short diagnosis: the likely cause and what to try first. Usually within a day.
- Supabase RLS not working in your Lovable, Bolt, or Cursor appUsers can see each other's data, or every query returns nothing. How to check and fix Supabase Row Level Security in an AI-built app.
- Stripe checkout works but the user is still on the free planPayment succeeds, the plan never unlocks. How to debug Stripe webhooks in an AI-built app: signature errors, wrong secret, raw body, and missing events.
- Environment variables undefined after deployWorks locally, breaks on Vercel or Netlify with undefined API keys. Why env vars go missing in AI-built apps and how to fix them safely.
- Blank white screen after deployThe preview looked fine, the live site is a white page. How to find the real error behind a blank screen in a React, Vite, or Next.js app built with AI.
- Vercel or Netlify deploy fails but it builds locallyBuild passes on your laptop, fails on the host. The common reasons AI-built apps fail to deploy and how to fix each one.
- Supabase login redirects to localhost after deployGoogle sign-in, magic links, or confirmation emails send users to localhost or back to the login page. How to fix Supabase auth redirect URLs in a Lovable, Bolt, or Cursor app.
- CORS error when your app calls a Supabase Edge Function or API"Blocked by CORS policy" in the console when your Lovable, Bolt, or Cursor app calls an Edge Function or your own API. What it really means and how to fix it.
- OpenAI or Anthropic key exposed, or a surprise AI billYour AI usage spiked overnight or a scanner flagged your key. How to lock down the AI endpoint in a vibe-coded app: rotate the key, move calls server-side, and add auth, rate limits, and spend caps.
- Supabase "permission denied for table" (42501) on a new tableFrom October 30, 2026, new Supabase tables are not reachable from supabase-js until you GRANT access. Why your new Lovable, Bolt, or Cursor feature returns 42501, and the safe way to fix it without exposing every table.
- Your host was breached (Railway): how to rotate every secret, in the right orderRailway says customer environment variables may have been decrypted. A priority-ordered checklist for vibe-coded apps: rotate Stripe, database, Supabase, and AI keys at the provider, revoke the old ones, check the logs, and keep shipping while deploys are paused.
- Supabase view bypasses RLS: anyone can read or delete rows through itA Postgres view runs with its owner's rights by default, so a view over a table with RLS can hand every row to anyone with your anon key. How to find risky views in a Lovable, Bolt, or Cursor app and lock them down with security_invoker.
- Supabase RPC returns 404: "Could not find the function in the schema cache" (PGRST202)Your app calls supabase.rpc() and gets a 404 with PGRST202, even though the function exists. Why it happens in Lovable, Bolt, and Cursor apps, and how to fix the argument names, schema, and cache.
- Stripe webhook fails with 301, 307, or 308: the redirect is the bugStripe's delivery log shows 3xx errors and paid users never get access. Stripe does not follow redirects, so a www, https, or trailing-slash redirect silently drops every event. How to find the real URL and fix it.
- Vercel paused my Hobby project: find what burned the usage and fix itYour Vercel site is down because the Hobby team went over a usage limit like ISR Writes, Fast Origin Transfer, or Active CPU. How to find the route that caused it, cut the usage, and ask to be unpaused.
- Supabase paused my free project: restore it and keep it from pausing againYour Lovable, Bolt, or Cursor app stopped loading data because Supabase paused the free project after a week of low activity. How to restore it, what to check after it wakes up, and how to stop it happening again.
- Vercel still deploys the old repo (or nothing) after moving it to a GitHub organizationYou moved your Lovable, Bolt, or Cursor app's repo from your personal GitHub to an organization, and now pushes don't deploy, or Vercel keeps building the old personal repo. How to reconnect it and what the Hobby plan blocks.
- Vercel 413 FUNCTION_PAYLOAD_TOO_LARGE on file uploads: upload straight to storage insteadImage or file uploads work locally but fail on Vercel with 413 FUNCTION_PAYLOAD_TOO_LARGE, or "Body exceeded 1 MB limit" in a Next.js Server Action. Why the 4.5 MB limit hits AI-built apps and how to upload directly to Supabase Storage or Vercel Blob.
- Your Lovable app may be exposing user data: how to check and lock it downResearchers found thousands of Lovable apps whose Supabase tables were readable without a login. How to test your own project, turn on Row Level Security, and close the usual gaps.
- Supabase Free plan over quota (egress, cached egress, logs): find the cause and get your app backSupabase says your organization exceeded the Free Plan quota, or your Lovable, Bolt, or Cursor app started failing after the grace period. How to find what is using egress, cut it, handle the new log meters, and get through to the next billing cycle.
- Vercel 403 with x-vercel-mitigated or a Security Checkpoint page blocking your API, webhook, or formYour Vercel app works in the browser, but API clients, webhooks, cron jobs, or a form get 403 or 429 with x-vercel-mitigated: challenge or deny. How to find which firewall rule fired and let legitimate traffic through without switching protection off.
- Vercel custom domain shows Invalid Configuration or no HTTPS: fix the DNS and the certificateYour app works on its vercel.app URL, but the custom domain says Invalid Configuration, does not resolve, or has no valid HTTPS certificate. How to check the records Vercel actually wants, clean up old ones, and get the certificate issued.
- Supabase project Unhealthy or stuck hibernated (28P01, 503, restart refused): get it back without losing dataYour Lovable, Bolt, or Cursor app is down because the Supabase project shows Unhealthy, will not wake from hibernation, and the SQL Editor says 28P01 password authentication failed. What it means, what not to click, and how to get support to recover it in place.
- Stripe webhook to a Supabase Edge Function fails with 401 "Missing authorization header" or "Invalid JWT"Payments go through but nothing unlocks, and Stripe shows every delivery to your Supabase Edge Function failing with 401. Why the platform rejects Stripe before your code runs, the one-function config change, and the signature check you must add in its place.
- Supabase "Legacy API keys are disabled" or "Invalid API key": move your app to the new publishable and secret keysYour Lovable, Bolt, or Cursor app suddenly gets 401 from Supabase after a restore, a new project, or someone turning off the old anon and service_role keys. Supabase is deprecating those keys by the end of 2026. How to find every place that still uses them and swap safely.
- Supabase 401 PGRST303 "JWT issued at future": users sign in but every data request failsSign-in works, then the next database call returns 401 with PGRST303 "JWT issued at future", sometimes now and then, sometimes on every request. It is usually not your code. How to confirm it, the upgrade that fixes it, and what to do while you wait.
- Next.js + Supabase build fails: "You're importing a component that needs next/headers"Your Cursor, Claude Code, or v0 Next.js app runs in dev but the Vercel build stops with a next/headers error, almost always because one Supabase helper file is shared by server and browser code. How to split it into a browser client and a server client, and stop it coming back.
- Supabase "email rate limit exceeded": sign-up, magic link, and password reset emails stop sendingNew users never get their confirmation email, password resets fail, and Supabase Auth returns 429 "email rate limit exceeded" or "Email address not authorized". The built-in email sender is for testing only. How to connect real SMTP in about 15 minutes and raise the limit safely.
- Replit published app shows 502 Bad Gateway or "Application failed to respond" after republishingPreview works, you click Republish, and the live replit.app URL returns 502 or never finishes publishing. It is usually the server crashing at startup, listening on the wrong host or port, or a missing production secret. How to read the logs and fix each one.
- Supabase Free project read-only or down with a full disk (25006, 53100 No space left on device, PANIC crash loop)Writes fail with "cannot execute INSERT in a read-only transaction", or the whole database is down with "No space left on device" and PANIC in the logs. Why a small database can still fill the 2 GB Free disk, how to get writes back, and what to do if Postgres is already down.
- Supabase CLI v3 broke my deploy: db push hits the local stack, HostedMutationConsentRequiredError, [inbucket] no longer supportedSince November 2, 2026, npm, Homebrew and supabase/setup-cli install Supabase CLI v3. Migrations quietly stop reaching production, GitHub Actions fail, and supabase start errors on config.toml. The exact flags to add, or how to pin v2 until you are ready.
- Supabase "Email link is invalid or has expired" (otp_expired) on a link the user just gotNew users click the confirmation, magic link, or password reset email and land on your app with error_code=otp_expired. Your own tests work. Usually a mail scanner opened the link first. How to confirm it and change the email so a scanner cannot use it up.
- Supabase "operator does not exist: uuid = text" (42883) in an RLS or storage policyCreating a policy, a migration, or calling an RPC fails with ERROR 42883 operator does not exist: uuid = text (or text = uuid, or uuid = jsonb). Your AI tool compared a uuid with text. How to find the mismatch, the cast that fixes it, and when to change the column instead.
- Can't connect to Supabase Postgres from Prisma, Drizzle, or Vercel: password authentication failed, Tenant or user not found, P1013, ENETUNREACHThe Supabase client works, but your DATABASE_URL does not: password authentication failed, Tenant or user not found, Prisma P1013 invalid port number, ENETUNREACH on Vercel, or prepared statement already exists. Each error points at one part of the connection string. Here is which part and the fix.
- Supabase sign-up fails with "Database error saving new user": fix the profile triggerNew users cannot sign up (500, unexpected_failure, "Database error saving new user"), but your own account still works. Almost always the trigger that copies new users into a profiles table is failing. How to find the real Postgres error and fix the trigger without blocking sign-ups again.
- Supabase REST API returns 504 PGRST003 "Timed out acquiring connection from connection pool" (or 503 PGRST002)Your Supabase queries hang and then fail with 504 PGRST003, or 503 PGRST002 "Could not query the database for the schema cache", while SQL in the dashboard still works. What is holding the Data API's connections, how to find it, and when a restart or support ticket is the right move.
- Next.js "Failed to find Server Action" after a deploy: version skew and multiple instancesForms and buttons that call a Server Action fail right after you deploy, with "Failed to find Server Action. This request might be from an older or newer deployment." Why open tabs and multi-instance hosting break Server Actions, and the Vercel, Replit, Docker, and Railway fixes.