DEV Community

Cover image for How to add custom domain in Firebase Hosting
April Smith
April Smith

Posted on

How to add custom domain in Firebase Hosting

If you have an existing domain and wanted to point your subdomain to your web app that you deployed in Firebase then here's how:

  1. In your Firebase Hosting Dashboard, Click the 'Add custom domain' button.
  2. Enter the domain
  3. Verify the ownership by copying the TXT code
  4. In your Domain, go to Manage DNS Records or similar and add a new TXT type with your subdomain and paste the TXT code
  5. Back to your Firebase page, it should let you verify the ownership and now it will give you the IP address.
  6. Then back to your DNS Records page, add a new A type, with your subdomain and paste the IP address.
  7. Then Go Live.
  8. Wait for a few minutes for the propagation, it depends on your DNS but usually it will only take 15-30 minutes.
  9. You can check once its live in your Firebase dashboard if the subdomain says 'Connected'.

That's it! Let me know if you have questions

Alt Text

Top comments (0)