VibeCPR
Quick saves

Fixes for common vibe-coded app errors

Paste the error, find the fix. Each guide has the exact cause, steps, code, and a prompt you can give your AI tool.

Git · Secrets · GitHub · Claude Code · Cursor

AI agent pushed API keys to GitHub? git commit --no-verify skipped your pre-commit hook

My AI coding agent pushed API keys to GitHub: the pre-commit hook blocked the commit, so the agent ran git commit --no-verify

Security · Billing

Fix a surprise AI API bill: rate limits and spend caps

Your vibe-coded AI app ran up a huge OpenAI, Anthropic or hosting bill overnight because anyone can call it

Publishing · Access control · Auth

Your app is public to anyone with the link: a share link is not a login

My app opens for anyone with the link: share links, preview URLs and "unlisted" subdomains are not a login

Bolt · Supabase · RLS

Triage Bolt's "RLS Policy Always True" warning: when it's fine and how to fix it

Bolt Security Audit: "RLS Policy Always True" warning

Security · Secrets · Claude Code

Fix secrets leaked via Claude Code .claude/settings.local.json

Claude Code saved a password, Supabase service_role key, database URL, or AWS key from a "Yes, and don't ask again" approval into .claude/settings.local.json, and the file got committed

Firebase · Security rules

Fix "Your Cloud Firestore database has insecure rules" (Firebase email)

Your Cloud Firestore database has insecure rules

Auth · Supabase · Rate limiting

Login lockout keyed only on email? Rate-limit by IP and account without locking users out

Login lockout keyed only on email: anyone can lock a user out, and IP-only limits are bypassed

Lovable · Supabase · API keys

Fix Lovable "Invalid API key" after rotating Supabase keys (anon, publishable, secret)

Lovable app: 401 "Invalid API key" after rotating or disabling Supabase keys

Lovable · Supabase · Security checks

Lovable won't publish because of security findings? What each finding means and how to fix it

Lovable won't publish: "Review security findings" dialog, or "Resolve findings" under "Before you publish" (critical security findings)

Auth · Authorization · Supabase · Firebase

"Sign in with Google" lets anyone in: restrict who can use your app (allowlist, domain check, RLS)

"Sign in with Google" lets any Google account into my app (any Gmail user can sign in and see the data)

Security · Payments · Stripe

Fix Stripe sk_live keys left in MCP or agent config

A live Stripe secret key (sk_live_...) is sitting in mcp.json, Claude Desktop config, or an npx --api-key= flag where agents and logs can see it

Payments · Stripe

Fix Stripe webhook "No signatures found matching the expected signature for payload"

No signatures found matching the expected signature for payload

Supabase · Auth

Fix Supabase auth redirecting to localhost after deploy

Supabase login, magic link or password reset redirects to http://localhost:3000 after you deploy

Supabase · Edge Functions

Fix Supabase Edge Function "blocked by CORS policy" (preflight)

has been blocked by CORS policy: Response to preflight request doesn't pass access control check

Supabase · RLS · Policies

Fix Supabase "infinite recursion detected in policy for relation" (42P17) in RLS

infinite recursion detected in policy for relation "profiles" (Supabase / Postgres error 42P17)

Supabase · RLS · Stripe

Form says success but no row in Supabase (or Stripe webhook returns 200 but writes nothing)

Form says success but no row shows up in Supabase, or a Stripe webhook returns 200 but writes nothing

Supabase · RLS

Fix "new row violates row-level security policy for table" (Supabase)

new row violates row-level security policy for table

Supabase · supabase-js · PostgREST

Supabase only returns 1,000 rows? Fix the silent max rows limit in Lovable and Bolt apps

Supabase only returns 1,000 rows (no error): select() capped by the Data API "Max rows" setting

Supabase · Breaking change

Fix Supabase "permission denied for table" (42501) on new tables after Oct 30, 2026

permission denied for table (42501) on a new Supabase table

Supabase · Storage · RLS

Fix a Supabase public Storage bucket that lets anyone list or download your files

Supabase Security Advisor: "Public bucket allows listing" (public_bucket_allows_listing)

Supabase · Realtime · RLS

Supabase Realtime leaking rows or not receiving changes: fix RLS and the publication

Supabase Realtime sends every row to everyone, or my subscription says SUBSCRIBED but receives nothing

Supabase · RLS · API keys · Next.js · Edge Functions

Supabase RLS not working on the server? Your API uses the service_role or secret key

My Supabase RLS policies do nothing: users can read or change other users' data through my API route, server action or Edge Function (the server uses the service_role / secret key)

Supabase · RLS

Fix Supabase RLS policy USING (true) that makes a table publicly readable

RLS policy USING (true) / Supabase table publicly readable

Supabase · Postgres · Constraints

Your app's rules only live in the frontend: move them into Supabase

Duplicate usernames, negative quantities or self-approved orders in my Supabase app

Supabase · RLS · RPC functions

Fix a Supabase SECURITY DEFINER function anyone can call through /rest/v1/rpc

Supabase Security Advisor: "This SECURITY DEFINER function is callable without signing in" (anon can call /rest/v1/rpc)

Supabase · RLS · supabase-js

Fix Supabase .single() "JSON object requested, multiple (or no) rows returned" (PGRST116)

JSON object requested, multiple (or no) rows returned (PGRST116) / Cannot coerce the result to a single JSON object

Supabase · RLS · Privileges

Stop Supabase users from upgrading their own plan or making themselves admin

Signed-in users can set their own plan, credits or is_admin in Supabase

Supabase · RLS · Views

Fix a Supabase view that bypasses RLS: security_invoker and revoking anon write grants

Supabase view bypasses RLS (security_invoker) / anon can delete through a view

Deploy · Routing

Fix "404: NOT_FOUND" on refresh in a React/Vite app on Vercel (vercel.json rewrite)

404: NOT_FOUND

Deploy · Build errors

Fix "Module not found: Can't resolve" on Vercel (works locally)

Module not found: Can't resolve

Security · Vite · Dev server · Lovable

Is my Vite dev server exposed? Check --host / server.host and patch the RCE (GHSA-p4f5-76q4-ffq7)

Vite dev server reachable on the network ("Network: http://192.168.x.x:5173", --host, server.host: "::") with a vite version affected by GHSA-p4f5-76q4-ffq7 (remote code execution)