0
0
Firebasecloud~10 mins

Custom domain configuration in Firebase - Step-by-Step Execution

Choose your learning style9 modes available
Process Flow - Custom domain configuration
Start: Firebase Hosting Setup
Add Custom Domain in Firebase Console
Firebase Provides DNS Records
Update Domain DNS Settings
Firebase Verifies Domain Ownership
SSL Certificate Provisioned
Custom Domain Active and Serving Content
This flow shows how to connect your own website address to Firebase Hosting by adding the domain, updating DNS, verifying ownership, and enabling secure access.
Execution Sample
Firebase
firebase hosting:sites:create my-site
firebase hosting:channel:deploy live
# Add custom domain via Firebase console
# Update DNS records as instructed
# Wait for verification and SSL provisioning
Commands and steps to create a hosting site, deploy content, add a custom domain, update DNS, and activate the domain.
Process Table
StepActionFirebase ResponseUser ActionResult
1Create Hosting SiteSite 'my-site' createdRun create commandHosting site ready
2Deploy ContentChannel 'live' deployedDeploy app filesContent available on default URL
3Add Custom DomainDomain 'example.com' addedAdd domain in consoleDomain pending verification
4Provide DNS RecordsDNS records shownCopy DNS recordsRecords ready to update
5Update DNS SettingsWaiting for DNS propagationUpdate domain registrar DNSDNS changes propagating
6Verify Domain OwnershipDomain verifiedWait for Firebase verificationOwnership confirmed
7Provision SSL CertificateSSL certificate issuedAutomaticSecure HTTPS enabled
8Activate Custom DomainDomain activeAutomaticSite serves on custom domain
9ExitProcess complete-Custom domain fully configured
💡 Custom domain is active and serving content securely after verification and SSL provisioning.
Status Tracker
VariableStartAfter Step 3After Step 6After Step 7Final
Hosting SiteNoneCreated 'my-site'Created 'my-site'Created 'my-site'Created 'my-site'
Custom Domain StatusNoneAdded, pending verificationVerifiedVerifiedActive
DNS RecordsNoneProvidedUpdated at registrarUpdated at registrarUpdated at registrar
SSL CertificateNoneNoneNoneIssuedIssued
Key Moments - 3 Insights
Why does the custom domain show as 'pending verification' after adding it?
Because Firebase waits for you to update your domain's DNS records and then verifies ownership (see execution_table step 3 and 6). Until verification completes, the domain is not active.
What happens if DNS records are not updated correctly?
Firebase cannot verify domain ownership, so SSL won't be issued and the domain won't become active (see execution_table step 5 and 6). Correct DNS updates are essential.
Is SSL certificate setup manual or automatic?
Firebase automatically provisions the SSL certificate after domain verification (see execution_table step 7). You do not need to manage SSL yourself.
Visual Quiz - 3 Questions
Test your understanding
Look at the execution table, at which step does Firebase verify domain ownership?
AStep 6
BStep 7
CStep 4
DStep 5
💡 Hint
Check the 'Firebase Response' column for 'Domain verified' in the execution_table.
According to the variable tracker, what is the status of the SSL certificate after step 6?
AIssued
BNone
CPending
DExpired
💡 Hint
Look at the 'SSL Certificate' row under 'After Step 6' in the variable_tracker.
If DNS records are not updated at the registrar, what will happen to the custom domain status?
AIt will become active immediately
BIt will be removed automatically
CIt will remain pending verification
DSSL will be issued anyway
💡 Hint
Refer to key_moments about DNS updates and execution_table steps 5 and 6.
Concept Snapshot
Custom domain setup in Firebase Hosting:
1. Create hosting site and deploy content.
2. Add your domain in Firebase console.
3. Update DNS records at your domain registrar.
4. Firebase verifies ownership and issues SSL.
5. Domain becomes active and serves content securely.
Full Transcript
This visual execution shows how to configure a custom domain in Firebase Hosting. First, you create a hosting site and deploy your app. Then, you add your custom domain in the Firebase console. Firebase provides DNS records that you must add to your domain registrar. After DNS propagation, Firebase verifies domain ownership. Once verified, Firebase automatically provisions an SSL certificate. Finally, your custom domain becomes active and serves your content securely over HTTPS. The execution table traces each step with Firebase responses and user actions. The variable tracker shows how domain status, DNS records, and SSL certificate state change through the process. Key moments clarify common confusions about verification and DNS updates. The quiz tests understanding of verification steps, SSL status, and DNS impact. This step-by-step trace helps beginners see exactly how Firebase connects their domain to hosting.