Is your Cursor-built app production-ready?

By Aakshar Garg, Co-founder, Fixier · Last reviewed

the short answer

It depends on the stack Cursor wrote for you, because Cursor is an editor and doesn't host your app or your database. Check three things first: that no secret sits in a variable the browser can read, that your database refuses requests for another user's rows, and that the agent never had credentials for your live database.

Cursor gives you a working app fast, and the code it writes is ordinary code: usually Next.js or React, deployed to Vercel or a similar host, with Supabase or Postgres behind it. That makes the checks familiar. The risks come from two places: what the generated code trusts the browser with, and what the agent could reach while it was writing it.

What we find in Cursor-built apps

What breaksWhat you'd notice
A secret in a NEXT_PUBLIC_ variablecriticalNext.js copies these values into the JavaScript it sends to every visitor. Anyone can open DevTools and read the key.
API routes with no ownership checkcriticalThe route checks that someone is logged in but never checks that the record belongs to them, so changing an ID in the request returns another customer's data.
.env committed to the repositorycriticalThe keys are in your git history. Deleting the file later doesn't remove them, and anyone with repo access, now or later, can read them.
Agent ran with production credentialshighYour local <code>.env</code> pointed at the live database, so a migration or cleanup command the agent ran during development hit real customer data.
Validation only in the browserhighThe form rejects a negative quantity. A request sent straight to your API doesn't go through the form, so prices, quantities and roles can be changed on the way in.
No error tracking or logsmediumErrors happen on your users' screens and on the server, and nobody on your side sees them until a customer emails.

Is an app built with Cursor production-ready?

Cursor writes normal code in whatever framework you asked for, so the app can be as production-ready as any other. Whether yours is comes down to the same checks as any web app: where secrets live, whether the server enforces who can read what, and whether you can see errors when they happen.

Is my Cursor app secure?

Start with your environment variables. In Next.js, anything prefixed NEXT_PUBLIC_ is inlined into the browser bundle at build time, so it must never hold a secret key. Then check every API route that returns data: it should confirm the record belongs to the logged-in user, as well as confirming that someone is logged in.

A quick test for the first one: open your live site, open DevTools, go to Sources, and search the bundle for the first few characters of each key. If you find one, rotate it with the provider. Removing it from the code isn't enough once it has shipped.

Can Cursor's agent touch my production database?

If your machine has credentials for it, yes. Cursor's agent can read files, edit files and run terminal commands, and a terminal command runs with whatever your .env gives it. Keep production credentials off the machine you build on and point local development at a separate database.

Cursor's run modes (Auto-review, Allowlist and Run Everything) decide which commands run without asking. Cursor's own security docs call these best-effort guardrails rather than a hard security boundary, and recommend version control so you can revert what the agent changes.

Does .cursorignore keep my secrets safe?

Only partly. Cursor blocks the agent and Tab from reading files listed in .cursorignore, but its docs say the terminal and MCP tools the agent uses can't be blocked from those files, and that complete protection isn't guaranteed. Keep real secrets out of the project folder, or in your host's secret store.

Why does my Cursor app work locally but break when deployed?

Your laptop and your host are two environments with two sets of settings. Environment variables, database URLs, redirects and allowed callback URLs for login all have to be set on the host too. Values baked in at build time keep whatever was set when the build ran.

What should I check before launching an app built with Cursor?

Search the live bundle for keys, try to fetch another user's record through your API, and make sure anything involving money is checked on the server. Then confirm the agent never had your production database credentials. The thirteen layers below are the full pass.

The 13-layer production check

Every audit we run walks the same thirteen layers, in this order. Each one is a question you can answer about your own app today, with no tools.

  1. 1

    Frontend foundationsDoes it break in front of the customer?

    error boundaries on every route, image and bundle optimisation, a console that's clean on a live load

  2. 2

    APIs & backend logicDoes your server trust whatever it's sent?

    input validation on every endpoint, verified webhook signatures, idempotent writes, errors that don't leak stack traces

  3. 3

    Database & storageCan a query be made to return someone else's rows?

    parameterised queries, tenant isolation in the database, CVEs in the ORM and driver, a backup policy that exists

  4. 4

    Auth & permissionsCan a stranger reach something they shouldn't?

    the session checked on the server before data is returned, reset and verification flows, lockout, re-auth before destructive actions

  5. 5

    Hosting & deploymentIf today's deploy is wrong, can you undo it?

    a staging or preview environment, a written rollback path, env vars separated per environment, HTTPS and HSTS enforced

  6. 6

    Cloud & computeWhat's the bill at a hundred times this traffic?

    budget alerts, documented platform limits, a ceiling on AI and inference spend

  7. 7

    CI/CD & version controlWhat stops a bad change reaching customers?

    lint, type-check, test and build on every push, branch protection on main, an automated CVE gate, no pre-release packages in production

  8. 8

    Security & RLSCan one customer see another customer's data?

    row-level security, a scan for committed secrets, live penetration probing for injection and XSS, CSP and framing headers

  9. 9

    Rate limitingCan one person hammer sign-in, or checkout, all night?

    limits on sign-in and sign-up, on payment routes, and on every endpoint that writes

  10. 10

    Caching & CDNCould one customer be served a page cached for another?

    no-store on authenticated responses, cache keys that can't cross users, a revalidation strategy someone actually chose

  11. 11

    Load balancing & scalingWhat happens when everyone arrives at once?

    database connection pooling, a horizontal scaling path, a load test we run at the traffic you expect

  12. 12

    Error tracking & logsWould you know it broke before a customer told you?

    error tracking in the browser and on the server, structured logs with levels, alerts on the paths that matter

  13. 13

    Availability & recoveryIf the data went wrong today, could you get it back?

    a health endpoint, external uptime monitoring, an incident playbook, a restore you have actually run

Each layer in full, with what it means, how to test it yourself, and the fix: the 13-layer production check.

Sources

Every claim above about a third-party tool was checked against that tool's own documentation on November 28, 2026. These products change fast. If you spot something out of date, tell us.

Related guides

Want someone to actually check?

We audit AI-built apps against all thirteen layers and hand back a report in plain English, with the technical detail underneath for whoever fixes it. Startup-friendly pricing, scoped to your project.

Book an Audit