The preview worked. The AI told you it was done. You typed "how do I share this with someone?" and it gave you a localhost URL.
This is the deployment gap — the most common place where real apps built by AI never reach a real user. Here's how to close it.
What "preview" actually means
In most AI builders, the preview URL is a temporary container running on the platform's servers. It is not persistent — it dies when you close the tab, when the session expires, or when the platform cleans up inactive sandboxes.
If you share that URL with a customer, it probably won't work for them, and it will almost certainly stop working by next week.
A live deployment is a different thing: your code runs on infrastructure that stays up, has a stable domain, and handles real users.
The 5-step deployment checklist
1. Get the code out
You need the actual codebase to deploy it anywhere. Options by platform:
| Platform | How to get the code |
|---|---|
| Lovable | Projects tab → GitHub sync → push to repo |
| Bolt.new | Download ZIP or connect GitHub |
| Replit Agent | Built-in export / GitHub push |
| NoCoder | Direct VS Code workspace in browser — download zip or push via built-in terminal |
| v0 (Vercel) | Add to Codebase → then deploy from repo |
Get this done before the preview session expires. A downloaded ZIP costs nothing to store.
2. Check for secrets in the frontend
Before deploying, search the entire codebase for any API keys, database passwords, or service credentials that should not be public.
# In your project folder
grep -r "sk-" . --include="*.ts" --include="*.tsx" --include="*.js"
grep -r "supabase" . --include="*.env" --include="*.ts"
grep -ri "password\|secret\|apikey\|api_key" . --include="*.ts" --include="*.tsx"
Any secret in a .env.local file is fine — it stays server-side. Any secret in a React component or a frontend file is a problem; move it to a backend API route.
This is not optional. AI tools frequently inline Supabase keys or external API tokens directly in components. If you ship that, your keys are in your browser's source tab.
3. Set up the database properly
If your app uses a database, the preview was probably pointing to a local SQLite file or a Supabase project without Row Level Security (RLS) locked down.
Before going live:
Supabase:
- Enable RLS on every table
- Write actual policies:
auth.uid() = user_idfor user-specific data - Do not leave tables in permissive mode (the green "RLS on" badge does not mean restricted)
- Set up a custom SMTP (Resend or Postmark) so auth emails don't land in spam
SQLite (local):
- Fine for a solo tool, not for multi-user apps
- Migrate to Postgres (Supabase, Neon, Railway Postgres) before sharing with real users
4. Deploy the frontend
Vercel is the simplest path for most AI-built apps (React/Next.js):
- Push code to GitHub (create a repo,
git init,git push) - Go to vercel.com/new → Import from GitHub
- Set environment variables (copy your
.env.localentries into Vercel's environment settings) - Click Deploy
If the build fails, copy the entire error log and paste it back to your AI tool: "The Vercel build failed with this error: [paste]. Fix it."
For apps with a custom backend (Express, FastAPI, etc.):
- Use Railway for the backend service
- Connect your Postgres DB on Railway in the same project
- Set environment variables to point frontend at the Railway URL, not localhost
5. Run the real-user test before sharing
Once deployed, do these 5 checks before you send the link to anyone:
1. Open in an incognito window (not signed into your account)
2. Try to sign up with a real email → check that the confirmation email arrives in <60 seconds
3. Complete the main user flow as a first-time user (booking, purchase, signup)
4. Try to access /admin or /api/admin from a logged-out browser → should return 401/403
5. Reload the page — does your data persist, or does the app reset?
Fail on any of these before you share. Fix before launch, not after.
Shortcut: NoCoder's one-click deploy
If you built on NoCoder, the agent includes a Deploy to Vercel button after the preview loads. It runs the same checklist automatically — the agent verifies it passed all HTTP checks before marking the build done.
The workspace is a real VS Code environment you can download, push to GitHub, or deploy directly. Here are real apps that went from first prompt to live deploy:
- Tandoor & Tiffin food ordering — deployed, real menu, order flow with persistence
- Sharp & Co. barber booking — calendar-based booking, admin view, appointment prevention on double-book
If you want to try it on your own idea, the first 3 builds are free: nocoder.codes/try
The deploy checklist in one place
☐ Code exported from AI platform
☐ Secrets grep — nothing sensitive in frontend files
☐ Database: RLS on and tested; production DB separate from preview
☐ Custom SMTP for auth emails
☐ Deployed to Vercel / Railway (not localhost)
☐ Environment variables set in host platform (not in code)
☐ Incognito test: sign up, main flow, /admin logged out, reload
Save this. You'll need it every launch.
This guide covers self-deployments from AI-built projects. If you used Lovable, Bolt, or Replit Agent, the code you export is standard React/Next.js — the deployment steps are the same as any other Next.js project. The only differences are where your secrets live and whether the AI locked down the database properly.
Spotted a step that doesn't work for your stack? The NoCoder gallery shows the full terminal output and agent verification for each built app — including what broke and how it got fixed.