官术网_书友最值得收藏!

Extra mile – connecting your Firebase project to a custom domain

It's fairly easy to connect the Firebase project to a custom domain. First of all, of course, you need to buy this domain. For this application, I bought the pleaseintroduceyourself domain with the cheapest top-level domain, .xyz. It cost me a bit more than a dollar per year on GoDaddy (https://godaddy.com). After you have your domain, it's really easy. Go to the Firebase web console of the project. Click on the Hosting tab on the left-hand side. Then, click on the CONNECT DOMAIN button:

Click on the CONNECT DOMAIN button

In the popup, input your domain name:

Input your domain name

It will suggest that you add a TXT DNS record to your domain. Just open your DNS provider page, select your domain, find out how to add DNS records, and add the record with the TXT type. In my case, with GoDaddy, the record adding section looks like this:

Adding the DNS TXT record to our domain

After the handshake is established (mind, it might take some time), Firebase will propose you the final step—adding the A record to your domain. Follow the exact same procedure as in the previous step; just instead of records of type TXT, add records of type A.

It will take some time until the changes are completely propagated. In my case, it took around an hour. After a while, you will be able to open your new page with the https://<your domain>.<your top level domain> address. In my case, as you already know, it's https://pleaseintroduceyourself.xyz/.

主站蜘蛛池模板: 溧阳市| 邯郸市| 宁晋县| 丽江市| 博客| 韶山市| 龙泉市| 太白县| 潜山县| 香格里拉县| 奉新县| 桓台县| 巫山县| 汾西县| 邵阳市| 夏邑县| 武强县| 曲靖市| 锡林浩特市| 凤凰县| 盖州市| 冕宁县| 湘潭县| 旺苍县| 亚东县| 广德县| 邯郸市| 广饶县| 宾阳县| 营口市| 鲜城| 阳城县| 卢氏县| 阳东县| 县级市| 华亭县| 梨树县| 佛学| 米林县| 尼木县| 繁峙县|