I built an MVP with AI, now what? The last mile: infrastructure and deployment
Built an app with AI (Lovable, Cursor, v0, Replit) and do not know how to launch it? Understand the MVP last mile: choosing infrastructure, deployment, domain, database and security to make your product publicly accessible.

Building an MVP has never been easier. With tools like Cursor, Lovable, v0, Bolt and Replit, anyone with a good idea can turn a prompt into a working product on their own screen in days, sometimes hours.
And then comes the question that fills forums and communities: it is ready, it works on my machine, how do I put it online? How does a real customer access it, at a real address, without it breaking on first use?
That is the last mile of the AI-built MVP: infrastructure selection and deployment. It is the stage AI tools only half-solve, and where most projects stall. This guide organizes the decisions you need to make, in the right order.
Why the last mile exists
An app running on your computer (the famous localhost) is a private prototype. To become a publicly accessible product, it needs a set of pieces the code alone does not provide:- Hosting: a server or platform running the app 24 hours a day;
- Domain: the address (yourapp.com) people type, with an HTTPS certificate;
- Database: a persistent, secure place for the data, outside your machine;
- Environment variables: the vault for your API keys, which must never ship exposed in the code;
- Monitoring: some way of knowing the app went down before the customer complains.
Path 1: publish through the AI tool itself
Lovable, Replit, v0 and similar tools offer one-click publishing, usually on one of their subdomains (yourapp.lovable.app) with the option of connecting your own domain. When it makes sense: to validate the idea with the first users, demo to investors and test willingness to pay. It is the fastest route in the world to a public URL. The limits: you are tied to the platform (the so-called lock-in), you have little control over performance, cost at scale and backups, and common product features (queues, scheduled jobs, complex integrations) start hitting the ceiling. Treat it as temporary parking, not as a permanent address.Path 2: managed deployment platforms (the default for MVPs)
The middle ground that became the market standard: platforms that take your code (usually from GitHub) and handle servers, HTTPS, scaling and automatic deploys on every update. The most common names:- Vercel and Netlify for front-ends and modern web apps (React, Next.js, what AI tools generate most);
- Cloudflare Pages and Workers for sites and applications with excellent cost and global performance;
- Railway, Render and Fly.io for back-ends, APIs and full applications;
- Supabase and Neon as managed databases (Postgres) with authentication built in.
Path 3: traditional cloud (AWS, Google Cloud, Azure)
The path of large companies, with total control over every piece. For an MVP, it is usually overkill: the learning curve is steep, configuration mistakes are expensive (in money and in security), and the time you spend configuring a VPC is time not spent validating the product. When it makes sense: when there is a specific requirement (compliance, sensitive data, integration with corporate systems) or when the product validates and it is time to structure the definitive architecture. At that point, it pays to have a partner who does this professionally by your side: it is one of the roles Espresso Labs plays for clients who were born on paths 1 or 2 and needed to grow, designing and operating the cloud architecture so the founder does not have to become an AWS specialist.The deployment checklist: what to verify before sharing the link
Whichever path you take, this is the minimum list before making the app public:- API keys out of the code. AI tools sometimes leave keys exposed in the front-end or the repository. An exposed key means a surprise bill and a data leak. Move everything to environment variables on the server.
- Your own domain with HTTPS. Register the domain and connect it to the platform; the certificate is usually automatic.
- Managed database with backups. No data in local files or in a database running on your machine. Confirm automatic backups are on.
- Real authentication. Login and access control implemented with a mature service (Supabase Auth, Auth0, Clerk), not the improvised logic the prompt generated.
- Limits and basic protection. Rate limiting on APIs and validation on the server, not just on the screen. Remember: real users do not behave the way you expect.
- Monitoring and errors. A free uptime and error-tracking service (like Sentry) warns you about the fire before the customer does.
- Privacy compliance from day one. If you collect personal data, have a privacy policy and a clear purpose for every piece of data, following the regulations that apply to your users (GDPR in Europe, LGPD in Brazil).