![](https://habrastorage.org/getpro/habr/upload_files/f31/3ef/73e/f313ef73ef595482ba554482287a49f6.png)
In my previous article, I showed you how to deploy your project to Firebase and use it for free. Now, let’s explore additional benefits of Firebase. In the upcoming article, I will show you how to set up a custom domain name for your project and utilize a free SSL certificate from Firebase.
I assume you have already read my previous article. If not, it’s better to start from there. Before you can set up a custom domain name for your Firebase project, you need to purchase a domain name. There are many places where you can buy a custom domain name, such as:
Godaddy.com
101domains
Etc.
It doesn’t matter which company you choose, as all of them will work with Firebase.
How to Set Up a Custom Domain for Firebase Hosting
First, you need to log in to your Firebase account and go to the console at https://console.firebase.google.com/.
Then, select the project that you have created earlier or create a new one.
![](https://habrastorage.org/getpro/habr/upload_files/d2b/f8d/7e9/d2bf8d7e9f4de87a78437808a9d23514.png)
In the left navigation bar, choose ‘Build’ and then select ‘Hosting’ from the dropdown menu.
![](https://habrastorage.org/getpro/habr/upload_files/a77/cc0/63a/a77cc063a7cc9df3987901bf7936161d.png)
In the new window, click on the ‘Add custom domain’ button.
![](https://habrastorage.org/getpro/habr/upload_files/1d8/7d6/71c/1d87d671cbf4ed2a0d278371fe17ea7d.png)
In the modal window, enter the name of your custom domain and click ‘Continue’.
![](https://habrastorage.org/getpro/habr/upload_files/0e5/f6a/31b/0e5f6a31b940fe3dadcd66b82e74c957.png)
In the next step, you will receive a TXT record that you need to add in the control panel of your custom domain provider (DNS provider).
Once you have added the record, click ‘Verify’.
![](https://habrastorage.org/getpro/habr/upload_files/e92/861/7d6/e928617d6a18887e08e2dcec36e4252a.png)
Please note that it may take up to 24 hours for your domain to be fully resolved.
How to Get a Free SSL Certificate for a Custom Domain on Firebase Hosting
To get a free SSL certificate from Firebase, you don’t have to do anything. Yes, that’s correct! You don’t have to do anything else!
Once you add your custom domain, Firebase automatically adds an SSL certificate to it. It’s a basic certificate but sufficient for a simple project.
![](https://habrastorage.org/getpro/habr/upload_files/09b/87d/c2a/09b87dc2a0da545b37dbebe1f5e5da1a.png)
Keep in mind that it could take up to 24 hours to issue the certificate.
Conclusion
As you can see, Firebase is not only a simple and fast solution for your project but also comes with free perks that can be very useful for startups or small projects.
If you liked my article, please share it with your friends. It motivates me to write more useful stuff.
Thanks! And see you in the next article soon. ;)