Goal: Understand deployment options beyond Lovable's built-in hosting
Estimated Time: 30-40 minutes
Prerequisites: Complete Modules 1-8 first
By the end of this module, you will:
- Understand Lovable's built-in hosting
- Know when to consider custom cloud deployment
- Learn about alternative hosting platforms
- Understand how to export your code
- Know how to deploy to Vercel, Netlify, etc.
- Understand migration considerations
Lovable's hosting includes:
- ✅ Automatic deployment
- ✅ Free subdomain (yourproject.lovable.app)
- ✅ HTTPS (secure connections)
- ✅ CDN (fast global delivery)
- ✅ Automatic updates
- ✅ No configuration needed
Use Lovable hosting when:
- ✅ You're learning and building
- ✅ You want simplicity
- ✅ Free subdomain is fine
- ✅ You want automatic updates
- ✅ You're building personal projects
💡 Beginner Tip: Lovable's hosting is excellent for most projects! Only consider alternatives if you have specific needs.
Consider custom deployment if you need:
- Custom domain requirements
- Specific platform features
- Integration with existing infrastructure
- More control over deployment
- Different pricing model
- Team/organization requirements
- Best for: Next.js, React apps
- Features: Automatic deployments, edge functions
- Pricing: Free tier available
- Best for: Static sites, JAMstack
- Features: Forms, functions, split testing
- Pricing: Free tier available
- Best for: Enterprise, complex needs
- Features: Full cloud infrastructure
- Pricing: Pay-as-you-go
💡 Beginner Tip: Most beginners don't need custom clouds. Lovable's hosting works great!
Option 1: From GitHub
- If connected to GitHub, code is already there
- Clone repository
- Use the code anywhere
Option 2: Download from Lovable
- Go to project settings
- Look for "Export" or "Download"
- Download your code
Option 3: Use Code Mode
- View code in Code Mode
- Copy files you need
- (Requires paid plan for editing)
Exported code includes:
- All source files
- Configuration files
- Dependencies list
- Project structure
💡 Beginner Tip: If you're connected to GitHub, your code is already exported there!
Vercel is great for:
- React/Next.js apps
- Fast deployments
- Automatic CI/CD
- Edge functions
- Great developer experience
- Connect to GitHub (if not already)
- Ensure code is pushed to GitHub
- Check that it builds locally (optional)
- Sign up at vercel.com
- Import from GitHub:
- Click "Import Project"
- Select your repository
- Vercel detects settings
- Configure:
- Framework preset (if needed)
- Build settings
- Environment variables
- Deploy:
- Click "Deploy"
- Wait for build
- Get your URL!
- Add domain in Vercel dashboard
- Configure DNS as instructed
- Wait for propagation
- Your app is live!
💡 Beginner Tip: Vercel makes deployment easy! It auto-detects most settings.
Netlify is great for:
- Static sites
- JAMstack apps
- Forms and functions
- Split testing
- Easy deployment
- Ensure code is in GitHub
- Check build settings
- Prepare environment variables (if needed)
- Sign up at netlify.com
- Import from GitHub:
- Click "New site from Git"
- Connect GitHub
- Select repository
- Configure:
- Build command (if needed)
- Publish directory
- Environment variables
- Deploy:
- Click "Deploy site"
- Wait for build
- Get your URL!
- Add domain in Netlify
- Follow DNS instructions
- Enable HTTPS (automatic)
- Done!
💡 Beginner Tip: Netlify is very beginner-friendly with great documentation!
Before migrating, think about:
- ✅ Why are you migrating?
- ✅ What features do you need?
- ✅ What will you lose/gain?
- ✅ Is it worth the effort?
Lovable-specific features:
- Visual editing in Lovable
- Some Lovable integrations
- Lovable's update system
- Easy re-deployment from Lovable
Custom platform features:
- Platform-specific tools
- Different pricing
- More control
- Team features
If you decide to migrate:
- Export your code (from GitHub or Lovable)
- Set up new hosting (Vercel, Netlify, etc.)
- Configure environment variables
- Set up custom domain (if needed)
- Test thoroughly
- Update DNS (if using custom domain)
- Monitor for issues
💡 Beginner Tip: Most people don't need to migrate! Lovable's hosting is excellent. Only migrate if you have specific requirements.
Task: Deploy a Lovable project to Vercel.
Steps:
-
Ensure GitHub connection:
- Connect project to GitHub
- Verify code is synced
-
Sign up for Vercel:
- Go to vercel.com
- Sign up with GitHub
-
Import project:
- Click "Import Project"
- Select your repository
- Configure settings
- Deploy
-
Test deployment:
- Visit your Vercel URL
- Test all features
- Verify everything works
-
Add custom domain (optional):
- Add your domain
- Configure DNS
- Wait for propagation
What You Learned:
- ✅ How to export code
- ✅ How to deploy to alternative platform
- ✅ How to configure deployment
- ✅ How to add custom domain
Before completing the course, make sure you can:
- Understand Lovable's hosting benefits
- Know when to consider alternatives
- Understand how to export code
- Know how to deploy to Vercel/Netlify
- Understand migration considerations
- Know when to stay with Lovable hosting
A: For most beginners, Lovable hosting is perfect! Only use custom clouds if you have specific needs.
A: Yes! You can deploy to multiple platforms. Some people use Lovable for development and custom cloud for production.
A: No! Your project stays in Lovable. You're just deploying a copy elsewhere.
A: It depends on your app's complexity. Simple apps are easy, complex apps with many integrations take more work.
A: Yes! Your project is always in Lovable. You can deploy from Lovable anytime.
Excellent! You now understand deployment options. For most projects, Lovable's hosting is perfect. Custom clouds are there when you need them.
You've completed all advanced modules! 🎉
Next steps:
- Apply everything to Module 9's capstone project
- Build your own projects
- Continue learning and experimenting!
Module 15 Complete! 🎉