Blog ·

Your secret key is in the browser bundle

Vibe-coded apps often work on the first try because the browser was handed a key it should never see. A Supabase service_role key, a Stripe secret key, or an OpenAI key in a NEXT_PUBLIC_ or VITE_ variable gets bundled into the JavaScript every visitor downloads. Anyone can open DevTools, search the bundle, and copy it.

A quick check: load your live site, open the Sources or Network tab, and search the JS for "sk_live", "service_role", or "sk-". Anything secret belongs on the server only, and a key that was ever public should be rotated, not just removed.

FlowWatch's leak scan looks for exposed keys on your live app so you find them before someone else does.

Run a free check on FlowWatch