What a Cursor-Built App Needs Before Production (2026): A 12-Point Readiness Check and What Cursor Leaves to You
An app built with Cursor needs the same things any production app needs: a repository, secrets stored outside the code, a production database with backups, a host running at least two copies (replicas) with health checks
An app built with Cursor needs the same things any production app needs: a repository, secrets stored outside the code, a production database with backups, a host running at least two copies (replicas) with health checks, a domain with TLS, logs, and a way to roll back. Cursor writes the code and does not host it. With Control Plane, you add Control Plane’s MCP server to Cursor and ask the agent to deploy the app, and it builds the code from your repository and runs it with health checks and two replicas behind an HTTPS URL.
Disclosure: Control Plane publishes this guide.
TL;DR
An app built in Cursor is source code on your machine, and production means closing every gap between a local demo and a live service.
- Cursor writes and changes code. Running containers in production, hosting databases, storing secrets, issuing TLS certificates, and collecting logs happen somewhere else.
- Twelve checks cover security (repository, secrets, client-side variables, access control, database keys), data (production database with backups, migrations), and operations (environment configuration and logs, health endpoint, replicas, domain with TLS, rollback).
- You can ask Cursor’s agent to audit its own work. Each check in the readiness table includes a request to paste into the agent.
- Decide who handles each production layer. You can assemble the pieces yourself or use a platform that handles them together.
- With Control Plane, Cursor’s agent connects through Control Plane’s MCP server, builds the image from your repository, deploys with production defaults, and returns a live HTTPS URL. Secrets stay out of the conversation, databases install from Control Plane’s Template Catalog, and logs are collected automatically.
What does an app built with Cursor need before it can go to production?
An app built with Cursor needs secure code and secrets, a production database, and an operated runtime, and AI-written code needs the same review as hand-written code.
Code and secrets. The code must live in a Git repository with a .gitignore file that keeps files such as .env out of version control. No plaintext secret should appear in source code or Git history. The OWASP Secrets Management Cheat Sheet covers detecting secrets before they are committed and rotating any that leak. In Vite, variables prefixed VITE_ are bundled into client-side code at build time, and in Next.js, variables prefixed NEXT_PUBLIC_ are inlined into the browser bundle. Neither prefix should hold a secret. If the app uses Supabase, only the publishable key belongs in the browser, because the secret key bypasses every Row Level Security policy and must stay on the server. The publishable key is safe to expose only when Row Level Security is enabled on every table. Every protected route and API endpoint must check who the user is and what they may access, because Broken Access Control is the first category in the OWASP Top 10:2025.
Data. A production app needs a production database with automated backups. PostgreSQL’s pg_dump makes a consistent backup while the database is in use, and a backup is only proven by restoring it. Schema changes should run as versioned migrations so every environment applies them in the same order.
Operations. The app should read its port and configuration from environment variables and send logs to stdout, following the Twelve-Factor App principles. It needs a health endpoint the platform can probe. It should run as two or more copies with no session or user data stored in memory or on local disk, so a single crash does not take the service offline. A custom domain with TLS encrypts traffic between users and the app, and a rollback mechanism lets you return to the last working release. A separate guide covers how to make a vibe-coded app production ready step by step.
What should you check before launch?
Twelve checks cover security, data, and operations, and each one comes with a request you can paste into Cursor’s agent.
| No. | Check | Why it matters | How to verify | What to ask Cursor |
|---|---|---|---|---|
| 1 | Code is in a Git repository and .env is ignored |
Keeps secrets out of version control and gives you a history to roll back to | Run git check-ignore -v .env and confirm it prints the matching .gitignore rule, then run git ls-files .env and confirm it prints nothing |
“Confirm that .gitignore exists and covers .env and every other secret file, that no secret file is tracked by Git, and that none appears in any past commit.” |
| 2 | No secrets in source code or Git history | A leaked credential lets someone else act as your app | Run a secret scanner such as gitleaks over the files and the full Git history, and rotate any secret that was ever committed | “Search this project and its full Git history for hardcoded API keys, tokens, passwords, and connection strings. Report the file, line, and commit for each one without printing the value.” |
| 3 | No secrets in client-side variables (VITE_, NEXT_PUBLIC_) |
These prefixes put values into the browser bundle, where anyone can read them | Inspect the built output for secret values | “List every environment variable this app reads and mark which ones are secret. Flag any secret that uses a VITE_ or NEXT_PUBLIC_ prefix.” |
| 4 | Every protected route and API endpoint checks who the user is and what they may access | A missing check lets one user read or change another user’s data | Call each endpoint with no token, an expired token, and a token that belongs to a different user | “List every API route and page route in this project and mark whether it checks authentication and authorization. Flag any route that is unprotected.” |
| 5 | If the app uses Supabase, only the publishable key reaches the browser, and Row Level Security is on for every table | The secret key bypasses Row Level Security, and a table with Row Level Security off is readable and writable by anyone who has the publishable key | Search the frontend bundle for the secret key, and confirm in the Supabase dashboard that every table in the exposed schema has Row Level Security enabled with policies | “Check whether the Supabase secret key appears anywhere in client-side code or in any file that gets bundled for the browser. List every table in the migrations and mark whether Row Level Security is enabled and which policies apply.” |
| 6 | The database is a production database with backups and a tested restore | A database file inside the container is lost when the container is replaced, and an untested backup may not restore | Restore a backup to a separate instance and check the data | “List every database connection in this project and tell me whether each one points to a local file, an in-memory store, or a remote server. List any backup or restore script in the repository.” |
| 7 | Schema changes run as migrations | Hand-run changes cause drift between environments | Confirm a migrations folder exists and every change is versioned | “List all database schema changes in this project and confirm each one is in a versioned migration file.” |
| 8 | The app reads its port and config from environment variables and logs to stdout | A hardcoded port can stop the app from receiving traffic in a container, and stdout logs work with any log collector | Search for hardcoded port numbers and for log statements that write to files | “List every place this app reads a port number or config value and confirm it comes from an environment variable. Confirm the server listens on 0.0.0.0 and that all log output goes to stdout or stderr.” |
| 9 | A health endpoint exists | The platform needs a URL to check before it sends traffic | Call the endpoint and confirm a 200 response | “Add a /healthz endpoint that returns HTTP 200 and requires no authentication.” |
| 10 | The app runs as two or more copies and keeps no session or user data in memory or on local disk | With a single copy, every crash is an outage | Start two instances and confirm a session started on one works on the other | “Audit this app for in-memory state, local file writes, or sessions that would break when running multiple copies.” |
| 11 | A custom domain with TLS | TLS encrypts logins and data in transit, and browsers mark plain HTTP pages as not secure | Visit the domain, confirm the certificate is valid, and confirm the http:// address redirects to https:// | “List every URL, hostname, CORS origin, and OAuth redirect URL this app references. Flag any that is hardcoded to localhost, an IP address, or http://.” |
| 12 | A way to roll back a bad release | A broken release should not stay live while you debug | In a test environment, release a broken change, return to the previous version, and confirm it serves traffic | “Describe the steps needed to return this app to the previous working version if the next release fails. Flag any database migration the previous version cannot run against.” |
What does Cursor leave to you?
Cursor is an AI code editor whose agent edits files and runs terminal commands in your project, and it does not host apps.
| Layer | In Cursor | On Control Plane | If you assemble it yourself |
|---|---|---|---|
| Writing and changing code | The agent writes, edits, and refactors code across files | You keep using Cursor | You keep using Cursor |
| Building an image | The agent runs build commands in the terminal on your machine | Control Plane’s MCP server builds from a GitHub or GitLab repository with no Docker daemon, using the Dockerfile when one is present and otherwise detecting the stack; a local folder builds with Control Plane’s CLI command cpln image build --remote
|
A build service and a container registry |
| Running the app with replicas and health checks | The agent starts a local development server | Deploys as a standard workload, one of Control Plane’s five workload types, with health checks and two replicas by default, behind an HTTPS URL that is globally load-balanced and TLS-terminated | A container service with a load balancer and health probes |
| Database | The agent writes connection code and migration files | Installs PostgreSQL, MySQL, MariaDB, MongoDB, or Redis from Control Plane’s Template Catalog with generated credentials | A managed database service |
| Secrets | You | Control Plane generates secret values or gives you a link to the Control Plane Console to type them, so the credential stays out of the conversation; workloads read them as cpln://secret references |
A secrets manager |
| Domain and TLS | You | A TXT record proves ownership, a CNAME or NS records point the domain to Control Plane, and TLS certificates are issued and renewed automatically | A DNS provider and a certificate manager |
| Logs and diagnosis | The agent reads terminal output during development | Logs are collected automatically and queryable with LogQL, with 30-day default retention; the agent can read them and diagnose a failing workload | A logging stack with a query interface |
| Rollback | You | A version that fails its health probes never replaces the last healthy one, and the agent can roll a workload back to its previous version | A deployment pipeline with rollback support |
The code stays in your own folder or repository, in whatever stack you chose. Cursor supports Model Context Protocol (MCP) servers, configured in an mcp.json file, which let the agent work with external tools. Running the app in production, backing up the database, storing secrets, issuing a TLS certificate, and keeping logs all happen outside the editor.
Review the dependencies the agent added, the variables that reach the browser, and the authorization on every API route. A related guide lists the security risks in vibe-coded apps and how to close each one.
What is the fastest way to go from an AI-generated app to a scalable cloud deployment?
The fastest way is to connect Cursor to Control Plane and ask the agent to deploy, because one platform then builds and runs the app.
-
Commit the code. Push the project to a GitHub or GitLab repository and confirm
.gitignoreexcludes.envand any other secret files. - Move secrets out of code. Ask the agent to create each secret through Control Plane’s MCP server. The value never appears in the chat, and the workload reads it by reference. Plan to rotate secrets in an AI-built app on a schedule.
- Choose where the database lives. Install a database from Control Plane’s Template Catalog through the agent, or keep an existing Supabase database by setting its URL and keys as environment variables and secrets. The Template Catalog has a highly available PostgreSQL template with automatic failover, and a single-server PostgreSQL template with optional PgBouncer pooling and optional scheduled backups to object storage.
- Deploy with health checks and two replicas. Ask the agent to deploy the app. The MCP server builds the image from the repository and deploys an HTTP app as a standard workload with production defaults that include health checks and two replicas, so restarting or updating one replica does not take the app offline. A companion guide covers how to make an AI-generated app handle a traffic spike.
- Add a domain. The agent sets up your custom domain on request. You add a TXT record to prove ownership and a CNAME or NS records to route traffic, and the domain routes to the nearest healthy location.
- Watch logs and keep rollback ready. Ask the agent to read the logs when something looks wrong, and it reports a failing workload’s likely cause and fix. A version that fails its health probes never replaces the last healthy one, and the agent can roll a workload back to its previous version. Before any deletion, the agent states what it removes and what breaks, then waits for your explicit yes.
Connect Cursor before step 2. Add the server URL https://mcp.cpln.io/mcp to Cursor’s mcp.json, click Connect, sign in, and select the Control Plane orgs Cursor may access, as described in Control Plane’s Cursor setup guide. Every step after that runs from inside the editor. The same approach works from other assistants, as covered in the easiest way to deploy AI-built apps to production.
Three Control Plane features cover the scalable part. Autoscaling changes the number of replicas between the minimum and maximum you set. A workload runs in every location of its Global Virtual Cloud (GVC), Control Plane’s named set of locations across AWS, GCP, Azure, and Oracle Cloud Infrastructure regions. Capacity AI, Control Plane’s right-sizing feature, adjusts the CPU and memory reserved for a workload between its minimum and maximum, based on historical usage.
What infrastructure do you need to deploy apps built with AI coding tools like Cursor or Replit?
An app written with any AI coding tool needs the same six pieces of infrastructure.
- Build service. Something that turns source code into a runnable container image. Cloud Native Buildpacks do this without a Dockerfile.
- Runtime with replicas, health checks, and rollback. At least two copies of the app behind a load balancer and a way to return to the previous image, with a readiness probe that tells the platform when a container can receive traffic and a liveness probe that tells it when to restart one.
- Database. A production database with backups and a tested restore procedure.
- Secrets store. A place to hold API keys, database credentials, and signing keys outside the codebase.
- DNS and TLS. A custom domain with certificates that renew automatically.
- Logs. A system that collects stdout from every replica and lets you query it.
Control Plane provides all six in one platform, and Cursor’s agent reaches them through Control Plane’s MCP server.
How do you deploy a Cursor-built app with Control Plane?
Control Plane handles Day 2 operations for you, including autoscaling, built-in observability, and security.
You deploy a Cursor-built app with Control Plane by connecting Cursor to Control Plane’s hosted MCP server and asking the agent to deploy. Cursor connects with a browser sign-in, and the agent acts only in the Control Plane orgs you select.
For a repository on GitHub or GitLab, the agent builds the image through the MCP server with no Docker daemon on your machine. The MCP server is hosted and never reads your local filesystem, so a folder that is not pushed yet builds with the CLI from Cursor’s terminal: cpln image build --remote. The remote build needs no Docker daemon. It uses the Dockerfile when one is present, otherwise detects how to build the source, and pushes the image to the org’s private registry.
The agent deploys an HTTP app with health checks and two replicas and returns an HTTPS URL that is globally load-balanced and TLS-terminated. An update that fails its health probes does not replace the running version, because each location keeps serving the last healthy version until the new one reports ready. Logs are collected automatically, and the agent can query them to diagnose a failing workload.
Control Plane is PCI DSS Level 1, SOC 2 Type II, HIPAA, and GDPR compliant.
FAQ
Founders and developers ask these questions before launching an app built with Cursor.
What does an app built with Cursor need before it can go to production?
It needs a Git repository with secret files excluded, no credentials in source code or client-side bundles, authorization checks on every protected endpoint, a production database with backups and a tested restore, schema migrations, configuration from environment variables with logs to stdout, a health endpoint, at least two replicas with no local state, a custom domain with TLS, and a way to roll back. Every production app has the same requirements, whoever wrote the code.
Is code written by Cursor safe to run in production?
Yes, after the same review any code gets. Check authorization on every route, look for secrets in code and client-side variables, and review the dependencies. The 12-point readiness check lists what to verify, and the agent can audit each area when asked.
Can Cursor deploy my app for me?
Yes. Connected to Control Plane’s MCP server, Cursor’s agent can build an image from your repository, deploy it as a workload with health checks and two replicas, create secrets, install a database, set up a custom domain, and read logs. Cursor writes the code and runs terminal commands, and Control Plane hosts the app.
Do I need a Dockerfile to deploy a Cursor app?
No. On Control Plane, the MCP server uses a Dockerfile when one is present and otherwise detects the stack. For a local folder, Control Plane’s CLI command cpln image build --remote uploads the folder and builds it the same way, with no Docker daemon and no Dockerfile required.
How do I keep API keys out of a Cursor-built app?
Ask the agent to list every environment variable the app reads and mark which ones are secret, then move each secret into a secrets store. On Control Plane, the agent creates each secret through Control Plane’s MCP server, so the value stays out of the conversation. Keep secrets out of variables prefixed VITE_ or NEXT_PUBLIC_, because those prefixes put the value into the browser bundle.
Do I need DevOps experience to launch an app built with Cursor?
No. On Control Plane, Cursor’s agent handles image builds, deployment, secrets, database installation, domain setup, and log queries through the MCP server, and Control Plane operates the infrastructure. You still need to know what production requires, which is what the 12-point check covers.
How many replicas does a small app need?
Two is the practical minimum for production. With two replicas, one keeps serving traffic while the other restarts or updates. Health checks tell the platform when a replica can receive requests and when to restart it.
What is the fastest way to deploy an AI-generated app?
Connect your AI coding tool to Control Plane’s MCP server, push the code to a GitHub or GitLab repository, and ask the agent to deploy. It builds the image, deploys a workload with health checks and two replicas, and returns an HTTPS URL. Secrets, a database from the Template Catalog, and a custom domain are further requests to the same agent.
Does the agent need access to my local files to deploy?
No, when the code is in a GitHub or GitLab repository. Control Plane’s MCP server is hosted, never reads your local filesystem, and builds from the repository. For code that is not pushed yet, cpln image build --remote in Cursor’s terminal builds from the local folder.
What happens if a deploy breaks the app?
On Control Plane, a version that fails its health probes never receives traffic, and each location keeps serving the last healthy version. For a version that passes its probes and still misbehaves, the agent can roll the workload back to its previous version, then read the logs and report the likely cause and fix.
Talk to the Control Plane team to see how the MCP server works with your Cursor project, or sign up free to deploy your first workload.
Originally published on the Control Plane blog.
Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.