You have been building with Cursor for weeks. The app works locally, the tests pass, and you are ready to deploy. Because Cursor lives inside your IDE, you have been committing to git, running your own CI, and choosing your own stack the whole time. It feels like a normal development workflow, just faster.
That familiarity is exactly where the risk hides.
Tools like Lovable and Bolt hand you a deployed app and manage the infrastructure. They also enforce certain guardrails: environment variables on the server, a build step that strips client-only code, a single deploy button. Cursor does none of that. You get the code. What happens next — where the secrets live, how the database is locked down, whether the production build actually strips your console logs — is entirely up to you.
This walkthrough covers the gaps that appear when you move from "it works on my machine" to "strangers are using this." It assumes you know your way around a terminal and a codebase. If you would rather a developer do the checking, the launch-readiness audit covers 137 points across 14 areas with a person confirming every finding.
Start with what the browser can see
Open your deployed app in Chrome. Press F12, go to the Sources tab, and search across all loaded files (Ctrl+Shift+F / Cmd+Option+F).
Search for the prefixes your framework uses for client-exposed variables:
NEXT_PUBLIC_(Next.js)VITE_(Vite)REACT_APP_(Create React App)PUBLIC_(Astro, SvelteKit)
Then search for the actual secret patterns:
sk_live(Stripe secret key)sk-(OpenAI)service_role(Supabase)Bearer(generic auth headers)Any database connection string
If a secret appears in the browser, it is public. Rotate it immediately in the provider dashboard, then move the new key to your hosting provider's environment variables so only server-side code reads it.
While you are in the Network tab, reload and click around. Watch request headers. If an Authorization header carries a secret key, the browser has it. That is the same leak.
Check what your database will hand to a stranger
If you use Supabase, your database is reachable straight from the browser. The anon key is public by design. The only protection is row level security (RLS).
Pick a table that holds user data: profiles, orders, messages, documents. In a terminal, run:
curl "https://YOUR-PROJECT.supabase.co/rest/v1/profiles?select=*&limit=5" \
-H "apikey: YOUR_ANON_KEY" \
-H "Authorization: Bearer YOUR_ANON_KEY"
If you get real rows back, anyone can read them without logging in. Repeat for every table that holds personal data.
Then log in as a test user, grab the JWT from your browser's Application > Local Storage, and run the same request with that token. Try to read a row that belongs to a different user. If it works, your RLS policies are not filtering by owner.
We wrote a full ten-minute test for this in our Supabase RLS mistakes post.
Test authentication with two accounts, not one
Create two test accounts. As user A, create something: an order, a note, a project. Copy the URL or ID. Log out, log in as user B, and try to open user A's record.
Also try these while logged in as user B:
Edit user A's record by changing the ID in the request (check the Network tab for PUT/PATCH requests)
Delete user A's record
Call any API endpoint directly with user A's ID in the payload
If any of these work, the server is not checking ownership. This is the single most common serious bug in AI-built apps because the tool only ever tested as one person. Our authentication bugs post covers eight variants and how to test each one.
Now log out completely. Visit your dashboard, admin and settings URLs directly in a private browser window. Try submitting forms that should need an account. Try calling API endpoints by pasting them into the address bar. Hiding a button is not the same as blocking the action. The block has to happen on the server.
Verify your build actually strips what it should
Cursor does not manage your build. You do. That means you need to confirm that your production build behaves differently from development.
Check three things:
Console logs and debug code: Run a production build locally (
npm run build && npm run startor your framework's equivalent). Open the app and check the browser console. You should see nothing — no API responses, no user objects, no "debug" messages. If you see them, your build is not stripping them.Source maps: In production, source maps should either be disabled or uploaded only to your error tracking service (Sentry, etc.), not served publicly. Check the Network tab for
.mapfiles. If they are there, anyone can reconstruct your original source.Environment variable leakage: Some frameworks only strip
NEXT_PUBLIC_/VITE_prefixed variables at build time. If you put a secret in a variable without the prefix but then import it in a client component, it can still end up in the bundle. Search your production bundle for any key pattern.
Check your forms accept only what you expect
Paste a very long string into every text field. Submit a form with nothing in it. Upload a file that is far too big, and one of the wrong type. Enter a negative number for a quantity or a price.
You are checking two things: that the app does not fall over, and that the server refuses bad input rather than only the browser. A form that validates in the browser but accepts anything sent directly to the backend is not validated.
Look at what your error messages say. Force an error. Disconnect your internet mid-action, or enter something invalid. A friendly "something went wrong" is fine. A stack trace, a database table name or a file path gives a stranger a map of your app.
Check the browser console too. Cursor-generated code often logs whole objects while you are iterating. Those objects sometimes include user details or tokens.
Verify payments are actually in live mode
If you take payments, run a real small transaction, then refund it. Test cards only work in test mode. Apps that quietly stay in test mode after launch are more common than you would think.
The less obvious half: what happens when a payment fails or a webhook does not arrive? If the answer is "nobody would know," that is a gap. Someone should get an alert.
Also verify that your Stripe publishable key (pk_live_...) is the only Stripe key in the browser. The secret key (sk_live_...) must only exist in your hosting environment variables.
Make sure emails actually arrive
Sign up with a fresh address, ideally a Gmail or Outlook one rather than your own domain. Does the confirmation email arrive, and does it land in the inbox rather than spam? Run a password reset from start to finish.
Many apps ship with the tool's built-in test email setup, which has strict sending limits or is not meant for production. It works for you and fails for your tenth customer.
Test the reset link twice. Request two resets in a row and see whether the first link still works after you use the second. A reset link should work once, and for a short time only.
Check for rate limiting on login
Nothing stops a script from trying ten thousand passwords against one account, or one common password against ten thousand accounts. Managed auth providers usually apply some rate limiting by default. A login endpoint you wrote (or Cursor wrote) from scratch usually has none.
Try a wrong password twenty times in a row, quickly. If nothing changes at all — no delay, no lockout, no CAPTCHA — ask whoever built the app what is limiting the rate. If the answer is "nothing," add it before launch.
Look at session lifetime
Log in on one browser, change your password in another, then go back to the first. Are you still logged in? Click log out, then press the back button, or copy a request from before you logged out and replay it. Does it still work?
Part of this depends on how sessions are stored. Many apps keep a signed token in the browser, and a token like that stays valid until it expires unless the server keeps a list of revoked ones. A short expiry is the usual defence. The bug is when the AI sets a token lifetime of a year, or no expiry at all, because it makes "stay logged in" easy.
Check the token's expiry. If you use a managed provider, look at its session settings. For a hand-rolled setup, paste a JWT into a decoder like jwt.io and read the exp field.
Find out where your backups are
Ask a direct question: if the database were deleted tonight, how would you get yesterday's data back? Some hosts back up automatically on paid plans and not at all on free ones. Some do both, but only keep a couple of days. Find out which applies to you before you need it.
If you can, actually restore one into a spare project. A backup you have never restored is a hope, not a plan.
Set up a way to find out when it is down
Right now the first you hear of an outage is a customer telling you. A free uptime monitor that pings your site every few minutes and emails you takes ten minutes to set up. Add error tracking if the app is more than a landing page, so a crash gives you a message with a line number rather than a vague complaint.
Test on a phone, on a slow connection, with a few users at once
Open the app on an actual phone. Throttle your connection to slow 3G in the browser's developer tools. Have two or three friends use it at the same moment.
Cursor and other AI tools love fetching an entire table and filtering it in the browser because it is the shortest path to a working screen. That is invisible with 20 rows and painful with 20,000. Slow loading is a reason people leave, and it also costs money if you pay per database read.
Separate your test setup from your live one
Does your test version use the same database as the live one? If so, the first time you clear out test data, you may clear out customers. Ideally there is a staging copy with its own database and its own keys, and your live environment variables are set in your hosting provider rather than copied into the code.
Also check who can deploy. If a single AI-assisted change can go straight to the live site with no review, a bad suggestion reaches your users in the same minute you accept it. Add a staging gate: deploy to staging, verify, then promote.
The bits where you need a second pair of eyes
You can run the checks above yourself. The following are harder to verify without reading code and trying to break things deliberately.
Server-side permission checks on every endpoint. You can test a few endpoints manually, but you cannot easily prove that every endpoint checks the caller's identity and their right to the data. A developer can grep the codebase for the auth middleware and confirm it is applied everywhere.
Business logic flaws. Can a user apply the same discount code twice? Can they place an order for a negative quantity? Can they skip a step in a multi-step flow by calling the final endpoint directly? These are logic bugs that only appear when someone tries to exploit them.
Third-party integration security. Your Stripe webhook signature verification, your Supabase service role key usage, your OAuth redirect URI validation — these are easy to get wrong and the AI often assumes the defaults are safe.
Dependency and supply chain risk. The packages your app pulls in, and the packages those packages pull in. A vulnerability in a transitive dependency can compromise your app even if your code is clean.
Infrastructure configuration. Your hosting provider's firewall rules, your database's network access settings, your CDN's caching headers on authenticated pages. These live outside your repo and the AI never sees them.
What to do with the results
Sort what you found into two piles. Anything involving other people's data, secrets or payments gets fixed before launch, full stop. Cosmetic and performance problems can wait for week two.
Be a little suspicious of AI fixes for the first pile. The pattern we see is a tool that makes the symptom vanish without addressing the cause: the error about missing permissions disappears because the permission check was removed. After any fix to access or secrets, repeat the original test rather than trusting the explanation.
If a developer reviewing all of this sounds more appealing than doing it yourself, that is how Vibe Code Guardian works. The free surface check looks at what is publicly visible on a domain you own, with no credit card needed. It is a starting point and not a full security review. The launch-readiness audit goes through your app against 137 points across 14 areas, with a developer confirming each finding, and gives you a ranked list of fixes. You can see the options on the packages page.
If you only have fifteen minutes before you share the link, do the database curl test, the two-account access test, and the browser secret search. They are the three where being wrong costs you the most.