Guide
A pre-launch checklist for apps built with AI
Your AI built the features. Launch is when strangers start using them, including the ones looking for an open database or a free API key. This is the checklist we'd run on any app built with AI before sending it real traffic: eight areas, each item with the reason it's there and where to check it. Most of it takes an afternoon.
Updated 5 min read
1. Secrets
- No keys in the code or its history. Search the repo for
sk_live_,sk-,sb_secret_,service_roleandAKIA, or run a scanner over it. A key that was ever pushed counts as leaked: rotate it. - **
.env*is in.gitignore,** andgit statusshows no env files. Commit a.env.examplewith names only. - Nothing secret behind a public prefix. Variables starting with
NEXT_PUBLIC_(orVITE_) end up in every visitor's browser. The Next.js production checklist says to make sure only public variables use the prefix. - Keys are marked secret in your host. Vercel's environment variables now come in two types, Config and Secret; Secret values are write-only after saving. Use it for API keys and tokens.
- Rotate keys you used during development. Stripe's go-live checklist suggests it, in case a key was saved somewhere outside your codebase along the way (a chat with your AI coder counts).
2. Database
- Row level security on every table, with policies scoped to the owner. This is the single most common hole in apps built with AI. Check it in five minutes.
- The Supabase Security Advisor shows no errors, and you've looked at its warnings.
- The secret (`service_role`) key is only on the server. It bypasses every policy.
- Storage buckets are private unless the files really are public.
- Supabase's own production checklist: turn on SSL enforcement, enable network restrictions, protect your Supabase account with multi-factor authentication, and add a second owner to your organisation so you're not the only way in.
If you built with Lovable, its own checklist before publishing asks for the same things: no secrets in frontend code, row level security policies configured and tested, authentication enforced on the server, and every critical finding in its Security view addressed.
3. Auth and API routes
- Every API route and server action checks who's calling. The Next.js production checklist is explicit: verify authentication and authorization inside each server action, and don't rely on proxy (middleware), layout or page-level checks alone.
- Check ownership, not just login. "Is someone signed in?" isn't enough; "does this record belong to them?" is the question. Broken access control is number one in the OWASP Top 10 (2025 edition).
- Admin, cron and webhook routes are protected: a role check for admin, a secret for cron (
Authorization: Bearerwith a value only your scheduler knows), a signature check for webhooks. - Routes that call paid AI APIs need sign-in and a rate limit, or a bot will spend your credits.
- Test with two accounts: user B must not be able to see or change user A's data by changing an id in a URL.
4. Payments
- A live webhook endpoint is registered, with its own signing secret in your production environment variables. Most "works in test, broken in live" reports come down to this.
- The webhook verifies Stripe's signature and handles delayed, duplicate and out-of-order events (Stripe's go-live checklist calls these out).
- Fulfilment happens from the webhook, not only from the success page.
- Failure paths work: a declined card shows a clear message and unlocks nothing; a failed renewal does what you intend.
- The customer portal is configured in live mode, if you use it. Its settings are separate from test mode.
- One real purchase, then a refund, done by you.
The full walkthrough, with test cards: Stripe test mode, end to end.
5. Spend limits
- OpenAI: in project settings, Limits, set a monthly spend limit and turn on Enforce a hard limit. Alerts alone don't stop anything; a hard limit makes requests fail once it's reached (not instantly, so spend can slightly exceed it).
- Anthropic: set a spend limit on the Console's billing page, or per workspace.
- Vercel (Pro): set an on-demand budget in Spend Management. Note that the budget alone only notifies you at 50%, 75% and 100%; to actually stop, turn on Pause Production Deployments.
- Stripe: use restricted keys with only the permissions your app needs.
6. Reliability
- Your money paths are tested, sign-up, login, checkout and your core feature, ideally automatically on every change. Here's how.
- An uptime monitor watches your homepage and a health endpoint, and alerts somewhere you'll see at night. Free options compared.
- Errors look intentional: a custom 404 and error page, not a stack trace.
- Preview deployments are protected (Vercel's Standard Protection does this on every plan) and use test keys.
- You know where the panic button is: Vercel's Attack Mode, free on all plans, makes visitors pass a security challenge during an attack. Know how to roll back to the previous deployment.
7. Email
- Auth emails use your own SMTP provider. Supabase's built-in email service only sends to members of your project's team, at a very low rate limit; Supabase urges a custom SMTP server for everything else. Without it, real users never get their confirmation emails.
- Your sending domain has SPF and DKIM set up. Google requires one of them from every sender, and both plus DMARC once you send more than 5,000 messages a day to Gmail addresses.
- Marketing emails have one-click unsubscribe, which Google also requires for bulk senders.
8. Legal basics
- A privacy policy that says who you are, what personal data you collect and why, the legal basis, how long you keep it, who you share it with and people's rights. The European Commission lists exactly what GDPR requires you to tell people, in clear and plain language, when you collect their data.
- Cookie consent only where it's needed. In the EU, cookies strictly necessary for a service the person asked for don't need consent; tracking and advertising cookies do, and refusing must be as easy as accepting.
- Terms of service and a refund policy, especially if a payment provider will review your site before approving you.
This is a starting point, not legal advice. If you handle health, financial or children's data, talk to a lawyer.
Where Corvis fits
Corvis turns a lot of this list into something that runs on its own. Its readiness report grades your repo on secrets, database rules, risky routes and config, and the free repo scan shows you the public version for any public GitHub repo. After launch it tests your key journeys on every preview deploy, checks every push for leaked keys, watches uptime, failed payments and AI spend, and tells you in plain English, asking before it fixes anything.
Sources
Checked against these pages on 24 October 2026. Providers change their dashboards; if a step looks different, the source has the current version.
- Next.js Docs: Production checklist (opens in a new tab)
- Supabase Docs: Production checklist (opens in a new tab)
- Supabase Docs: Database backups (opens in a new tab)
- Supabase Docs: Custom SMTP (opens in a new tab)
- Stripe Docs: Go-live checklist (opens in a new tab)
- OWASP Top 10:2025 (opens in a new tab)
- OpenAI: Spend limits (opens in a new tab)
- Anthropic: Rate limits and spend limits (opens in a new tab)
- Vercel Docs: Spend Management (opens in a new tab)
- Vercel Docs: Secret environment variables (opens in a new tab)
- Vercel Docs: Deployment Protection (opens in a new tab)
- Vercel Docs: Attack Mode (opens in a new tab)
- Google: Email sender guidelines (opens in a new tab)
- European Commission: What information must be given to individuals (opens in a new tab)
- Your Europe: Cookies and online privacy (opens in a new tab)
- Lovable Docs: Security checklist before publishing (opens in a new tab)