// Infrastructure & DNS
Connecting a Custom Domain
Guide to mapping your domain (e.g. sacbot.gg or yourdomain.com) to SAC Bot with automated HTTPS.
1. Connect Domain via Firebase Console
1. Navigate to your Firebase Console → Build → Hosting.
2. Click Add custom domain.
3. Enter your domain name (e.g., sacbot.gg or www.sacbot.gg).
4. Check "Redirect to an existing website" if you want apex to redirect to www or vice versa.
2. Configure DNS Records with Your Registrar
Add the following DNS records at your domain registrar (Namecheap, Cloudflare, GoDaddy, Google Domains, etc.):
# Apex Domain (e.g. sacbot.gg):
Type: A | Name: @ | Value: 199.36.158.100
Type: A | Name: @ | Value: 199.36.158.100
# Subdomain (e.g. www.sacbot.gg):
Type: CNAME | Name: www | Value: sac-bot-6c6eb.web.app
3. Automatic SSL / TLS Provisioning
Once the DNS records propagate (typically within 10–30 minutes), Firebase automatically provisions a free, auto-renewing SSL certificate via Google Trust Services or Let's Encrypt.
4. Update Canonical Tag & Discord Developer Portal
After the custom domain is active, update the <link rel="canonical" href="https://yourdomain.com/" /> in index.html and update your Discord Application Interaction Endpoint / Redirect URIs in the Discord Developer Portal.