Deployment Overview
CAFH Platform is a static frontend with a Node.js backend. You can deploy them together or separately.Deployment Options
- Vercel (Recommended)
- Netlify
- Railway
- Docker
Environment Variables
Set these in your deployment platform:.env.production
Static Hosting (Frontend Only)
If you only deploy the frontend:Custom Domain
Vercel
- Go to Project Settings > Domains
- Add your domain (e.g.,
cafh.org) - Update DNS records as shown
- Wait for SSL certificate provisioning
Netlify
- Go to Site Settings > Domain Management
- Add custom domain
- Configure DNS:
Post-Deployment
Test all features
- Login as admin and member
- Create a test campaign
- Upload media
- Create a blog post
- Test Zoom integration (if configured)
Monitor logs
Check deployment logs for errors:
- Vercel: Dashboard > Deployments > Logs
- Railway: Project > Deployments > Logs
Production Checklist
Security
Security
- HTTPS enabled (automatic with Vercel/Netlify)
- SMTP credentials in environment variables (not in code)
- CORS configured correctly
- Rate limiting enabled for email
Performance
Performance
- Production build minified
- Gzip/Brotli compression enabled
- CDN for static assets
- Lazy loading for large components
Monitoring
Monitoring
- Error tracking (Sentry, Rollbar)
- Uptime monitoring (UptimeRobot)
- Email delivery monitoring
- Storage usage tracking
Next Steps
Email Server
Configure production email
Environment Setup
Manage environment variables
Build Process
Optimize builds