v0 app security check: what to test before you launch a v0 or Next.js app
Updated 30 October 2026
v0 builds Next.js apps that you can deploy in a few clicks. Next.js runs code on both the server and in the browser, so the main question is which of your secrets ended up on the browser side.
Check your own app for this, free.
Paste your live URL. ShipCheck looks for leaked API keys in your page and JavaScript, exposed files like /.env and /.git, missing security headers, SSL certificate problems, domain expiry (custom domains only) and what Google sees without running JavaScript. You'll see your score without signing up.
1. Secret keys in the code your visitors download
In Next.js, any environment variable starting with NEXT_PUBLIC_ is built into the JavaScript sent to the browser. Secrets must use names without that prefix and only be read in server code, such as route handlers or server actions.
How to check: open your live site, open DevTools → Sources, and search the JavaScript for sk_live, sk-, service_role, sb_secret_ and AKIA. If you find one, rotate it (create a new key, update your app, then revoke the old one). Deleting it from the code is not enough, because it may already have been copied. Not sure about a key? Paste its first few characters into the free is this key safe? tool.
2. Your database: Row Level Security
Many v0 apps connect to Supabase or another database. If your app uses Supabase, the URL and anon or publishable key in your frontend are public by design. What protects your data is Row Level Security on every table, for reads and for writes. See how to test RLS properly and RLS for insert, update and delete.
3. Files that should never be public
Check that /.env, /.git/config and .js.map source maps don't download from your live site. Many hosts return the homepage for any path, so look at what actually comes back, not just the status code. More in source maps in production.
4. Security headers and HTTPS
On Vercel, you can add headers in next.config or vercel.json. Run curl -I https://your-app.com and look for Strict-Transport-Security, Content-Security-Policy, X-Frame-Options and X-Content-Type-Options, and check that plain http:// redirects to https://.
5. Can Google and AI search see your app?
Run curl https://your-app.com. If your headline, <title> and meta description aren't in the raw HTML, crawlers that don't run JavaScript see an empty page. Also check for a leftover noindex tag. See why a vibe-coded app isn't on Google.
6. Check again after every big prompt
Each AI edit can move a key into the frontend or loosen a policy. ShipCheck's paid plans re-scan weekly (or daily) and email you what's new, what's fixed and what's still open. The full list is in the pre-launch security checklist.
Copy-paste prompt: ask v0 to audit itself
Audit this project for security issues before launch:
1. List every API key or secret and where it is used. Any secret in frontend code
or in a browser-exposed env variable must move to server-side code.
2. If we use Supabase, list every table, whether RLS is on, and what each policy
allows for reads and writes. Flag any table without RLS or with "true" policies.
3. Make sure no .env file is publicly served and production source maps are off.
Show me the changes before applying them.FAQ
Is NEXT_PUBLIC_ safe for API keys?
Only for keys that are meant to be public, like a Stripe publishable key or a Supabase anon key. Anything secret (Stripe secret key, OpenAI key, Supabase service_role key) must not use the NEXT_PUBLIC_ prefix.
Does ShipCheck need access to my code?
No. The free scan only reads your live site from the outside, like a browser: your pages, JavaScript files and a few well-known paths. It never logs in or changes anything.
Run the same checks on your app.
A free scan takes under a minute. No card, and no sign-up to see your score and the list of issues.