VibeCodeHealth

launch

How to check if your vibe-coded app is safe before launch

A timed pre-launch walkthrough for Lovable, Bolt, v0, and Replit apps—secrets, Supabase RLS, HTTPS, headers, and when to run an automated grade.

Paste your production URL into the free Vibe Code Health grader for a Semrush-style score on secrets, headers, TLS, and common leaks—then come back to this guide for the fixes.

You finished the fun part. The UI looks decent, auth mostly works, and your AI builder gave you a public URL. Now comes the question that actually matters before you drop the link in Discord, Product Hunt, or a customer email:

Is this vibe-coded app safe enough to launch?

You do not need a penetration test for a weekend demo. You do need a short, honest pre-launch check that catches the mistakes Lovable, Bolt, v0, Replit, and Cursor + Supabase apps make over and over: leaked keys, open data tables, missing HTTPS locks, and “it worked on my preview” assumptions.

This guide is a launch readiness walkthrough—different from a general security checklist. It is ordered by when to run each check (preview → soft launch → public launch), with concrete commands and copy-paste steps. When you want an automated pass over the public surface, use the free Vibe Code Health grader.

What “safe to launch” means for a vibe app

For an early public link, safe enough usually means:

  1. No live secrets in the browser (Stripe sk_live_, OpenAI keys, Supabase service_role, private PEM files).
  2. HTTPS that works on the exact hostname you share.
  3. Strangers cannot read every database row (especially if you use Supabase).
  4. Basic browser defenses so one XSS bug is less catastrophic.
  5. No accidental file dumps (/.env, /.git).

You will still ship product bugs. That is fine. What you want to avoid is “anyone on the internet can empty my Stripe balance or export my users table.”

Official mental models worth bookmarking:

Phase 0 — Before you share any link (10 minutes)

Do this on a preview deploy, not only on localhost.

1. Confirm the hostname you will actually share

Write down the exact URL: https://your-app.lovable.app, https://something.vercel.app, or your custom domain. Scan and test that host. Preview and production often have different env vars.

2. Search the live JavaScript for secret shapes

Open the live site → DevTools → Network → reload → open a few .js bundles → Ctrl/Cmd+F for:

  • sk_live_ / sk_test_
  • service_role
  • AKIA (AWS)
  • ghp_ / github_pat_
  • -----BEGIN / PRIVATE KEY
  • sk-ant- / long sk- OpenAI-style keys

Why: Client bundles are public. Launch boards and scrapers harvest new hostnames quickly.

Fix: Move secrets to server-only env. In Next.js, never prefix secrets with NEXT_PUBLIC_. In Vite, never use VITE_ for secrets. In Lovable/Bolt/v0, mark keys as secret / server, not public/client.

Grade tip: Vibe Code Health forces an F if it finds a live secret in public files.

3. Probe the embarrassing paths yourself

In a private window visit:

https://YOUR-HOST/.env
https://YOUR-HOST/.git/config

You want 404 (or a generic host page), not DATABASE_URL= or [core].

If either file is readable: treat every secret inside as burned, rotate them, and redeploy with the correct publish directory (dist, .next, build—not the repo root).

Phase 1 — Soft launch to friends (20 minutes)

4. Check the padlock and certificate

Your share link must be https://. Click the padlock → certificate valid for this hostname. Mixed content (HTTPS page loading http:// scripts) can undo a lot of work.

5. Supabase: which key is in the browser?

KeyBrowser OK?Role
anon / publicYesLimited by RLS
service_roleNeverBypasses RLS

Decode a JWT at jwt.io (or locally) and read the role claim. Official reference: Supabase API keys.

If service_role is in frontend code, rotate it now. Deeper guide: How to stop leaking Supabase keys.

6. Turn on Row Level Security before inviting strangers

In Supabase → Table Editor → enable RLS on every table that holds user data. Default-deny, then add policies using auth.uid().

Without RLS, the public anon key can often read or write everything. See the beginner explainer: Supabase RLS for beginners.

A minimal “users can only see their own rows” policy pattern:

alter table public.notes enable row level security;

create policy "Users read own notes"
on public.notes
for select
to authenticated
using (auth.uid() = user_id);

create policy "Users insert own notes"
on public.notes
for insert
to authenticated
with check (auth.uid() = user_id);

Test with two accounts. If account B can see account A’s rows, do not launch.

7. Stripe / OpenAI / Anthropic: only publishable keys in the client

  • Stripe: pk_… in the browser is expected; sk_… must stay server-side (Stripe API keys).
  • OpenAI / Anthropic: call from a server route or Edge Function. Putting the key in the client is how bills explode overnight.

Phase 2 — Public launch checklist (15 minutes)

8. Turn on the basic browser safety headers

You want at least:

  • Content-Security-Policy (CSP — limits which scripts can run)
  • X-Frame-Options or CSP frame-ancestors (stops clickjacking)
  • X-Content-Type-Options: nosniff
  • Referrer-Policy
  • HSTS once you are sure HTTPS is solid

Copy-paste Next.js / Vercel examples live in Security headers for vibe coders. MDN references: CSP, X-Frame-Options.

9. Confirm cookies are not casually stealable

If you set session cookies yourself, prefer Secure, HttpOnly, and SameSite=Lax or Strict. MDN: Set-Cookie.

10. Run an automated public-surface grade

Paste the production URL into Vibe Code Health. Read Fix these 3 first. Copy the AI fix prompts into your builder, redeploy, re-scan.

In our checked-in calibration of 20 public Lovable / v0 / Replit / Netlify apps, every app graded C or D (10 C, 10 D)—usually missing headers, not leaking live secrets. That means a C is normal for a fresh ship, and an A is reachable with a short hardening pass (this site scores 99 / A on the same rubric).

11. Soft social proof without oversharing

After you like your grade, embed the badge from your report on the README or landing page. Visitors can open the full report; you are not claiming a pentest—just showing you checked the public surface.

12. Write down your “break glass” plan

Before launch traffic arrives, know how to:

  1. Rotate Stripe / OpenAI / Supabase keys
  2. Disable a broken OAuth provider
  3. Take the app offline or put up a maintenance page

Five minutes of notes beats panic later.

A 30-minute launch script you can follow today

MinuteAction
0–5Confirm production URL + HTTPS padlock
5–12Search JS for secret shapes; probe /.env and /.git/config
12–20Verify Supabase key role + RLS with two test users
20–25Paste URL into Vibe Code Health; note top 3 fixes
25–30Apply one AI fix prompt for headers or secrets; redeploy; re-scan

If anything in the first 20 minutes fails critically (live secret, open .env, RLS off on a user table), pause the launch. Fixes first, tweets later.

What this guide deliberately skips

  • Dependency CVE audits and SCA tools
  • Authenticated abuse testing / pentests
  • Compliance frameworks (SOC 2, HIPAA)

Those matter later. For vibe-coded launches, the failures that hurt this week are almost always public keys, open tables, and missing headers.

Next reads

When you are ready, grade your URL and share the example-style report with a teammate before you go fully public.

Grade your app next

Passive scan only—no login, no crawl of your whole site.

Open the scanner

Platform checkers

Free A–F grades written for the host you ship on.