Deployment
Deploy your Lovable apps to production with one click, configure custom domains, sync with GitHub, and follow the production readiness checklist.
One-Click Deployment
Lovable provides built-in deployment that gets your app live in seconds:
- Click the "Share" or "Deploy" button in the toolbar
- Your app is built and deployed to Lovable's hosting
- You receive a live URL (e.g.,
your-app.lovable.app) - Share the URL immediately — it's publicly accessible
- Every subsequent deploy updates the same URL
Custom Domains
Connect your own domain to your Lovable deployment:
- Go to your project's deployment settings
- Click "Add custom domain"
- Enter your domain name (e.g.,
myapp.com) - Update your DNS settings at your domain registrar:
- Add a CNAME record pointing to Lovable's hosting
- Wait for DNS propagation (usually 5–30 minutes)
- SSL certificate is provisioned automatically
Netlify/Vercel Deployment
For more control over deployment, you can deploy through third-party hosts:
Netlify
- Sync your Lovable project to GitHub
- Connect the GitHub repo to Netlify
- Set build command:
npm run build - Set publish directory:
dist - Add your environment variables (Supabase URL, keys, etc.)
- Deploy — Netlify builds and hosts your app
Vercel
- Sync your Lovable project to GitHub
- Import the repo in Vercel
- Vercel auto-detects the framework (Vite/React)
- Add environment variables
- Deploy — Vercel handles building and hosting
GitHub Repository Sync
Lovable automatically syncs your project to a GitHub repository:
- Every AI change creates a commit in your repo
- Manual code edits are also committed
- You get full git history for all changes
- Clone the repo to continue development locally
- Other developers can contribute through pull requests
Environment Configuration
When deploying, ensure your environment variables are set correctly:
| Variable | Where to Set | Notes |
|---|---|---|
VITE_SUPABASE_URL | Hosting platform | Your Supabase project URL |
VITE_SUPABASE_ANON_KEY | Hosting platform | Public anon key (safe for client) |
SUPABASE_SERVICE_ROLE_KEY | Server-side only | Never expose to client |
Database Deployment
Your Supabase database is already hosted in the cloud:
- No additional database deployment needed
- Ensure your Supabase project is on the appropriate plan for production traffic
- Enable point-in-time recovery for production databases
- Set up database backups (Supabase includes daily backups on paid plans)
Going to Production Checklist
- Enable Row Level Security (RLS) on all tables
- Test authentication flows (signup, login, password reset)
- Verify environment variables are set correctly
- Test on multiple devices and browsers
- Check that the app works with slow/offline connections
- Review and remove any test data from the database
- Set up error monitoring (e.g., Sentry)
- Configure a custom domain with SSL
- Test social login providers if used
- Verify file upload limits and storage quotas
💡 Try It: Deploy Your App
Deploy one of your Lovable projects using the one-click deploy. Then try deploying the same project through Netlify or Vercel using the GitHub sync. Compare the deployment experience and verify both deployments work correctly.