CollabOps Documentation Deployment Guide
This guide covers the complete deployment process for the CollabOps documentation site, including GitHub integration, Vercel deployment, and custom domain configuration.
๐๏ธ Architecture Overviewโ
Our documentation site uses the following technology stack:
- Framework: Docusaurus v3 with TypeScript
- Version Control: GitHub (CollabOps/collabops-docs)
- Hosting: Vercel with automatic deployments
- DNS: Cloudflare with proxy and security features
- Domain: docs.collabops.ai (custom subdomain)
๐ Prerequisitesโ
Before starting the deployment process, ensure you have:
- GitHub account with access to CollabOps organization
- Vercel account with GitHub integration
- Cloudflare account with collabops.ai domain management
- Admin access to domain DNS settings
๐ Deployment Processโ
Step 1: GitHub Repository Setup โ COMPLETEDโ
- Repository created:
CollabOps/collabops-docs - Initial commit with complete Docusaurus project
- Branch structure:
main(production) anddevelopment - Documentation files created and structured
- .gitignore and README.md configured
Step 2: Vercel Deployment โ COMPLETEDโ
- vercel.json configuration file created
- Build settings optimized for Docusaurus
- Automatic deployment from main branch configured
- Preview deployments for pull requests enabled
Vercel Configuration (vercel.json):
{
"buildCommand": "npm run build",
"outputDirectory": "build",
"framework": "docusaurus",
"installCommand": "npm install",
"devCommand": "npm start"
}
Step 3: Custom Domain Configuration ๐ IN PROGRESSโ
3.1 Cloudflare DNS Setupโ
-
Login to Cloudflare Dashboard
- Navigate to DNS management for
collabops.ai
- Navigate to DNS management for
-
Add CNAME Record
Type: CNAME
Name: docs
Target: collabops-docs.vercel.app
TTL: Auto
Proxy: DNS only (initially) -
SSL/TLS Configuration
- Set encryption mode to "Full"
- Enable "Always Use HTTPS"
- Enable "Automatic HTTPS Rewrites"
3.2 Vercel Domain Setupโ
-
Add Custom Domain
- Go to Project Settings โ Domains
- Add
docs.collabops.ai - Follow verification instructions
-
Domain Verification
- Add TXT record to Cloudflare if prompted:
Type: TXT
Name: _vercel.docs
Content: [verification string from Vercel]
- Add TXT record to Cloudflare if prompted:
-
Wait for Propagation (5-30 minutes)
3.3 Final Configurationโ
-
Activate Cloudflare Proxy
- Change CNAME record proxy status to "Proxied" (orange cloud)
- This enables CDN, DDoS protection, and security features
-
SSL Optimization
- Upgrade Cloudflare SSL to "Full (strict)" once working
- Enable HSTS (HTTP Strict Transport Security)
๐ง Performance Optimizationโ
Cloudflare Settingsโ
Page Rules for docs.collabops.ai/*:
- Cache Level: Standard
- Edge Cache TTL: 2 hours
- Browser Cache TTL: 30 minutes
Caching Configuration:
- Browser Cache TTL: 30 minutes
- Always Online: Enabled
- Origin Cache Control: Enabled
๐งช Testing Checklistโ
DNS and Connectivityโ
-
docs.collabops.airesolves correctly - HTTPS loads without certificate warnings
- HTTP automatically redirects to HTTPS
- All pages load correctly
- Mobile responsiveness verified
Performance Testingโ
- Lighthouse score > 90 for Performance
- Core Web Vitals pass
- Assets load from CDN
- Cache headers properly configured
Security Verificationโ
- SSL Labs test shows A+ rating
- Mixed content warnings absent
- Security headers properly configured
- HSTS enabled (after verification)
๐จ Troubleshootingโ
Common Issuesโ
DNS_PROBE_FINISHED_NXDOMAIN
- Verify CNAME record in Cloudflare
- Check DNS propagation status
- Wait up to 48 hours for global propagation
SSL Certificate Errors
- Ensure Cloudflare SSL is "Full" not "Flexible"
- Verify Vercel certificate provisioned
- Check domain name matches exactly
Redirect Loops
- Temporarily disable "Always Use HTTPS" in Cloudflare
- Verify both platforms aren't enforcing HTTPS simultaneously
Slow Performance
- Check Cloudflare Analytics cache hit ratio
- Verify CDN proxy is enabled (orange cloud)
- Purge cache after deployments
Emergency Proceduresโ
Site Down
- Check Vercel deployment status
- Verify Cloudflare proxy status
- Test direct Vercel URL (.vercel.app)
- Check GitHub repository status
SSL Issues
- Temporarily set Cloudflare to "DNS only"
- Wait for Vercel SSL to provision
- Re-enable Cloudflare proxy after verification
๐ Monitoringโ
Regular Checksโ
- Weekly: Uptime monitoring and performance review
- Monthly: SSL certificate status and security scan
- Quarterly: Full performance audit with Lighthouse
Key Metricsโ
- Uptime: Target > 99.9%
- Load Time: Target < 2 seconds
- Core Web Vitals: All metrics in "Good" range
- SSL Rating: Maintain A+ rating
๐ Maintenanceโ
Updates and Deploymentsโ
- Content Updates: Push to main branch for automatic deployment
- Feature Development: Use development branch and pull requests
- Emergency Fixes: Direct push to main with immediate verification
Cache Managementโ
- Purge Cloudflare cache after significant updates
- Monitor cache hit ratios and optimize rules
- Update cache headers in vercel.json as needed
Security Updatesโ
- Monitor Vercel and Cloudflare security announcements
- Apply security patches promptly
- Review access permissions quarterly
๐ Support Contactsโ
- Vercel Support: vercel.com/help
- Cloudflare Support: support.cloudflare.com
- Internal Team: CollabOps DevOps team via GitHub Issues
๐ Additional Resourcesโ
- Vercel Documentation
- Cloudflare DNS Documentation
- Docusaurus Deployment Guide
- Task Master Research Report - Detailed 2024 best practices