DEV Community

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

Posted on

4 1

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

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read more

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more