- Go to Firebase's Dashboard >
Develop
>Hosting
>Connect Domain
. - Enter the custom domain that you'd like to connect to your Hosting site.
- (Optional) Check the box to redirect of all requests on the custom domain to a second specified domain.
- Click Continue to initiate the validation process.
- Go to Namecheap's Dashboard >
Domain List
>Manage
>Advanced DNS
. - Under
Host Records
, add a new record with:type: TXT Record host: @ value: copy from Firebase's dashboard TTL: 60 min
- Wait for 10 - 20 mins, go back to Firebase's Dashboard click
Verify
. - Copy the 2 provided A records into Namecheap's Dashboard with the following value:
type: A Record host: @ value: copy from Firebase's dashboard TTL: Automatic
- Remove the default
CNAME Record
forparkingpage.namecheap.com
and the default Redirect record. - Repeat the same setup from step 2 for
www.yourdomain.com
but instead choose redirect to your previously setupyourdomain.com
. - Copy the 2 provided A records into Namecheap's Dashboard with the following value:
type: A Record host: www value: copy from Firebase's dashboard TTL: Automatic
- Create a
CNAME Record
with the following value (value is your main Firebase address with a dot at the end):type: CNAME Record host: www value: linene-xxxxx.firebaseapp.com. TTL: Automatic
Now you just have to wait for your hosting to update the DNS records and for DNS caches to flush. The status in your Firebase console should be Pending.
Also, keep in mind that your SSL certificate is automatically provisioned but requires a bit of time to be valid.
See THIS for example: