Connecting to custom domain
The main question we should ask ourselves after learning about Hosting a static web application is how do we associate that to our domain? So, what commands should we use in the Firebase CLI? Are commands required? What is the procedure? The answers are very simple and the process of connecting a custom domain is straightforward; it doesn't require any commands or code snippets. We need to visit https://console.firebase.google.com/project/_/hosting/main and if you have not hosted a static web app, you will need to click on the Get Started
button, which allows developers to explore the additional features, including the Connect Domain
button.
Click on the Connect Domain
button and now enter the domain URL in the input field and click Continue
. The process will validate that your domain is not associated with any Firebase project prior to this, and also give you the option to have a redirect mechanism point to another domain. Firebase fetches the SSL provision...