Lovable Pre-Launch Playbook
Lovable Production Security & Launch Checklist
Catch the top 6 security landmines Lovable apps ship by default: open Supabase tables without RLS, exposed Vite .js.map source maps, and client-side API keys.
Top Production Landmines in Lovable Apps
CRITICAL
Supabase tables created without Row Level Security (RLS)
Lovable migrations often create public tables readable by any anonymous visitor using your VITE_SUPABASE_ANON_KEY.
Fix: Run ALTER TABLE ... ENABLE ROW LEVEL SECURITY and add auth.uid() policies on every table.
CRITICAL
Secret keys prefixed with VITE_* compiled into browser JS
100% of VITE_* variables are embedded into public static JavaScript bundles.
Fix: Move OpenAI, Stripe, and Resend keys to Supabase Edge Functions.
HIGH
Public production .js.map source maps enabled
Allows anyone to download your unminified React/TypeScript source tree.
Fix: Set build: { sourcemap: false } in vite.config.ts.
HIGH
Unthrottled Supabase Edge Functions calling OpenAI/Anthropic
Bots can loop POST calls against your Edge Function and burn your AI credits.
Fix: Verify JWT session and add Upstash Redis rate limiting + max_tokens cap.
Copy-Paste Lovable Pre-Launch Audit Prompt
Audit my Lovable project before launch: verify every Supabase table has Row Level Security enabled with auth.uid() policies, ensure no secret API keys use VITE_ prefixes, disable Vite production source maps, and verify all Edge Functions check user auth.