Connect a custom domain

You can connect custom domains (like example.com or myrealtimeapp.example.com) to a Firebase Hosting site.

Firebase Hosting provisions an SSL certificate for each of your domains and serves your content over a global CDN.

Set up your domain for Hosting

Make sure that you've completed the "Get Started" wizard from your project's Firebase Hosting page so that you have a Firebase Hosting site in your Firebase project.

  1. From your project's Hosting page, enter the wizard for connecting a custom domain:

    • If you have only one Hosting site, click Connect domain.
    • If you have more than one Hosting site, click View for the desired site, then click Connect domain.
  2. Enter the custom domain that you'd like to connect to your Hosting site.

    Optionally, you can also check the box to configure a redirect of all requests on the custom domain to another specified domain.

  3. Click Continue to initiate the validation process. Then, if requested, verify your domain ownership by following the on-screen instructions.

    These steps ensure that your domain hasn't already been linked with a Firebase project and that you own the specified domain.

  4. To complete the custom domain setup, you can use the Quick Setup mode in most cases.

    However, if you already have a site running on another hosting provider and need a zero-downtime migration, then select Advanced Setup from the setup mode dropdown list.

    • Quick Setup — Point the DNS A records for your domain to Firebase Hosting.

    • Advanced Setup — Follow the on-screen instructions either to update your domain's DNS TXT records or to upload a file to a specified location on your existing site. After verification is complete, you can safely point your DNS A records to Firebase Hosting.

  5. Firebase provisions an SSL certificate within 24 hours after you point your DNS A records to Firebase Hosting.

Wait for SSL certificate provisioning

After we verify domain ownership, we provision an SSL certificate for your domain and deploy it across our global CDN. This process can take several hours.

Your domain will be listed as one of the Subject Alternative Names in the FirebaseApp SSL certificate, which is publicly viewable. While the domain is provisioning, you might see an invalid certificate that does not include your domain name. This is a normal part of the process and will resolve after your domain's certificate is available.

Оставить отзыв о...

Текущей странице
Нужна помощь? Обратитесь в службу поддержки.