Vibe Coding

Is your vibe-coded app ready for production? A launch checklist

By the NeuralSaaS team · Updated · 8 min read

Before launching an app built with an AI builder, check five things: no secret keys in the browser or the repository; database access rules switched on for every table; permissions enforced on the server and not only by hidden buttons; payments confirmed by a verified webhook; and any AI feature behind sign-in with usage limits. These are the gaps that cost the most when missed. A checklist cannot see your live settings, so treat it as a first pass, not a clearance.

Why do AI-built apps often break after launch?

AI builders are good at producing something that works when you click through it as yourself. The gaps appear with real users, real data and people who try things you did not. An interface can hide a button, but unless the server and the database also refuse the request, anyone can send it directly.

This is common and fixable. It is not a failing of the person who built the app. The aim is to find the gaps before your customers do.

1. Are any secret keys exposed?

Some keys are meant to be public, such as a Supabase anon key or a Stripe publishable key. Secret keys are not: service-role keys, Stripe secret keys, and keys for AI or email providers. Anything in an environment variable that starts with VITE_ or NEXT_PUBLIC_ is sent to every visitor's browser.

  • Search your project for VITE_ and NEXT_PUBLIC_ variable names. If one holds a secret or an AI or email key, it is exposed.
  • Check whether a .env file is committed to your repository, and whether .gitignore lists it.
  • Check whether any component calls an AI or email provider directly from the browser.

Fix: move the call to a server function that holds the key, and keep the key only in the host's secret settings.

2. Are the database rules switched on?

If your app talks to a hosted database from the browser, the database itself must decide who can read and write each row. In Supabase that means row-level security enabled on every table, with policies that limit rows to their owner. In Firebase it means security rules that are not open to everyone, for example not allow read, write: if true.

  • In the Supabase table editor, look for tables marked as unrestricted or with row-level security off.
  • Open your Firebase rules and look for rules that allow everything.
  • Check that policies exist for every table, not just the first few.

3. Does the server enforce permissions, or only the interface?

A hidden admin link is not security. Test it on your own app with two accounts: sign in as user A, copy the address of one of their private records, then sign in as user B and open it. If B can see or change it, permissions are only in the interface. Also check that admin features do not depend on a value stored in the browser, such as an isAdmin flag.

Fix: check the signed-in user and ownership in every server function and database policy, and store roles on the server side.

4. Is payment confirmed by a verified webhook?

If a customer reaches a success page and your app marks them as paid because of something in the address, such as ?paid=true, anyone can type that. Payment should be confirmed by a webhook from your payment provider, with its signature verified, that updates the order or plan in your database. The price and plan should be looked up on the server, never taken from the browser's request.

5. Are AI features protected from abuse?

An AI endpoint that anyone can call is an open tap on your bill. Put it behind sign-in, add per-user limits, and set a monthly spending cap with the provider. If the assistant can take actions, such as cancelling a booking or reading a record, those actions should run with the signed-in user's permissions, not an all-powerful key, and sensitive ones should ask for confirmation.

What should you do if a key was exposed?

  • Create a new key with the provider and store it only in the server's secret settings.
  • Revoke the old key. Deleting it from the code is not enough, because it may be in your git history or already copied.
  • Check the provider's usage dashboard for activity you do not recognise.
  • Set a spending limit or alert while you are there.
  • Remove the file from git and add it to .gitignore so it does not return.

Should you fix the app or rebuild it?

Most apps with the gaps above can be fixed in place. Four signs point toward bigger rewrites: there is no real security model, so access control must be designed across the whole data layer; the database cannot be recreated from the repository and queries will not hold up with real data; the app cannot run outside the builder or only its author can run it; or there are no tests and the code is so tangled that every change breaks something.

One failing area usually means rewriting that layer and keeping the rest. Several failing areas can mean rebuilding the foundation and reusing the interface and what you learned. It is a judgement, so get a person to confirm it before spending money either way.

What can a checklist not tell you?

  • Live settings in your database and hosting dashboards.
  • Whether backups exist and can be restored.
  • Production environment variables.
  • Secrets that were committed earlier and removed from the code but remain in git history.
  • Known vulnerabilities in your dependencies, which need an audit tool.

The free vibe code audit skill reads your repository inside your own AI agent, scores it across 35 checks, lists findings with file and line, and ends with a salvage-or-rebuild verdict. It is read-only and reports what it could not check. It is not a penetration test or a guarantee.

Frequently asked questions

Why do AI-built apps often break after launch?

Builders optimise for a working demo. Security settings, database rules, server-side permissions and payment verification are often left incomplete.

What are the five things to check before launch?

No secret keys in the browser or repository, database access rules switched on for every table, permissions enforced on the server, payments confirmed by a verified webhook, and AI features behind sign-in with usage limits.

What should I do if a key was exposed?

Treat it as compromised: rotate it, check usage for misuse and remove it from the code and history. The guide walks through the steps.

Does this checklist mean my app is safe?

No. A checklist cannot see your live settings, so treat it as a first pass, not a clearance.

Working on something like this?

Describe the workflow and we will tell you what is realistic and what a sensible first step looks like.

Keep reading