Skip to main content

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) and development
  • 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โ€‹

  1. Login to Cloudflare Dashboard

    • Navigate to DNS management for collabops.ai
  2. Add CNAME Record

    Type: CNAME
    Name: docs
    Target: collabops-docs.vercel.app
    TTL: Auto
    Proxy: DNS only (initially)
  3. SSL/TLS Configuration

    • Set encryption mode to "Full"
    • Enable "Always Use HTTPS"
    • Enable "Automatic HTTPS Rewrites"

3.2 Vercel Domain Setupโ€‹

  1. Add Custom Domain

    • Go to Project Settings โ†’ Domains
    • Add docs.collabops.ai
    • Follow verification instructions
  2. Domain Verification

    • Add TXT record to Cloudflare if prompted:
      Type: TXT
      Name: _vercel.docs
      Content: [verification string from Vercel]
  3. Wait for Propagation (5-30 minutes)

3.3 Final Configurationโ€‹

  1. Activate Cloudflare Proxy

    • Change CNAME record proxy status to "Proxied" (orange cloud)
    • This enables CDN, DDoS protection, and security features
  2. 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.ai resolves 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

  1. Check Vercel deployment status
  2. Verify Cloudflare proxy status
  3. Test direct Vercel URL (.vercel.app)
  4. Check GitHub repository status

SSL Issues

  1. Temporarily set Cloudflare to "DNS only"
  2. Wait for Vercel SSL to provision
  3. 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โ€‹

  1. Content Updates: Push to main branch for automatic deployment
  2. Feature Development: Use development branch and pull requests
  3. 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โ€‹


๐Ÿ“š Additional Resourcesโ€‹