How to deploy an AI-generated app to production
Your app looks great in the preview. It has pages, navigation, data tables, and maybe even a dashboard with charts. But it is running on demo data in a sandboxed environment. Getting it to production — with real users, real data, and a real URL — requires a few deliberate steps. Here is the complete checklist.
Step 1: Connect a database
An AI-generated app typically starts with hardcoded seed data or local state. That is fine for previewing, but production apps need persistent storage. In WyberAi, go to your project settings and connect a Supabase project. This gives you a full Postgres database with Row Level Security (RLS) baked in.
When you connect Supabase, WyberAi rewrites your app to use the Supabase client library. Database tables are created automatically based on the data structures in your app. Auth — sign-up, login, password reset, session management — is wired in at the same time. Each user only sees their own data by default.
If you already have a Supabase project with existing tables, you can connect to that instead. The builder will adapt to your existing schema.
Step 2: Set environment variables
Your app needs API keys to talk to Supabase (and any other services you integrate). These are stored as environment variables — never hardcoded in your source files.
VITE_SUPABASE_ANON_KEY=eyJhbGciOiJIUzI1NiIs...
WyberAi auto-populates these when you connect Supabase through the UI. If you are deploying manually or adding third-party services (Stripe, Resend, OpenAI), add those keys in the same environment variables panel before deploying.
Step 3: Test with real data
Before you deploy, create a real account in your app using the preview. Add a few real records. Test the full flow: sign up, create data, log out, log back in, confirm data persists. Check that RLS is working — sign up as a second user and verify they cannot see the first user's data.
This step catches 90% of production issues. If something looks wrong, fix it in the builder with a chat message before deploying.
Step 4: Deploy to Vercel
Click the Deploy button in your WyberAi project. The app is packaged as a standard Vite build and published to Vercel. Within a few minutes, you get a live URL at yourapp.wyberai.app.
Vercel handles SSL certificates, CDN distribution, and auto-scaling. A typical AI-generated app with Supabase backend can serve thousands of concurrent users without any infrastructure configuration.
Step 5: Add a custom domain
The default wyberai.app subdomain works, but for a production product you want your own domain. In your Vercel dashboard (linked from WyberAi), add your domain and update DNS. Point an A record or CNAME to Vercel's servers. SSL is provisioned automatically.
Once DNS propagates (usually under 10 minutes with most registrars), your app is live at app.yourdomain.com.
After deployment: iteration
Deploying is not the end. Go back to WyberAi and keep iterating. Every change you make in the builder can be re-deployed with the same one-click process. Your database persists across deployments — only the frontend code is updated.
Common post-launch changes: adding an analytics dashboard, integrating email notifications, adding CSV export, building an admin panel. Each is a chat message and a re-deploy.
The production checklist
- Database connected (Supabase) with RLS enabled
- Environment variables set for all services
- Auth flow tested — signup, login, password reset
- Data persistence verified across sessions
- Deployed to Vercel with live URL
- Custom domain configured (optional but recommended)
- Tested on mobile viewport
Generate your app, connect Supabase, and deploy — all in one session. 50 free credits to start.
Start building free →