markdown 将Firebase托管连接到Namecheap自定义域

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown 将Firebase托管连接到Namecheap自定义域相关的知识,希望对你有一定的参考价值。

# Connect Firebase Hosting to Namecheap Custom Domain

[SOURCE](https://medium.com/google-cloud/google-firebase-hosting-custom-domain-the-missing-manual-7f971c3c2d1e), [SOURCE](https://firebase.google.com/docs/hosting/custom-domain), [SOURCE](https://www.namecheap.com/support/knowledgebase/article.aspx/385/2237/how-to-redirect-a-url-for-a-domain)

1. Go to Firebase's Dashboard > `Develop` > `Hosting` > `Connect Domain`.
2. Enter the custom domain that you'd like to connect to your Hosting site.
3. (Optional) Check the box to redirect of all requests on the custom domain to a second specified domain.
4. Click **Continue** to initiate the validation process.
5. Go to Namecheap's Dashboard > `Domain List` > `Manage` > `Advanced DNS`.
6. Under `Host Records`, add a new record with:
    ```
    type: TXT Record
    host: @
    value: copy from Firebase's dashboard
    TTL: 60 min
    ```
7. Wait for 10 - 20 mins, go back to Firebase's Dashboard click `Verify`.
8. 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
    ```
9. Remove the default `CNAME Record` for `parkingpage.namecheap.com` and the default Redirect record.
10. Repeat the same setup from step 2 for `www.yourdomain.com` but instead choose redirect to your previously setup `yourdomain.com`.
11. 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
    ```
12. 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](https://stackoverflow.com/questions/48252041/dns-firebase-connect-to-namecheap-still-says-needs-setup) for example:

![Demo Image](https://i.stack.imgur.com/7ILGJ.png)

以上是关于markdown 将Firebase托管连接到Namecheap自定义域的主要内容,如果未能解决你的问题,请参考以下文章

通过电子邮件/密码使用 Firebase 身份验证将 Firebase 连接到 Android 应用程序

将 UITableView 连接到 Firebase 结果

将 Flutter App 的 iOS 部分连接到 Firebase 的困惑

无法将 Firebase 连接到 Android 应用 |此应用无权使用 Firebase 身份验证

markdown 步骤只是从firebase托管页面复制,但在markdown中跟随文本编辑器

将 Android Studio 项目连接到 Firebase 数据库的问题