Firebase: How do you add a vanity URL to a cloud function?

后端 未结 1 616
孤街浪徒
孤街浪徒 2021-02-06 18:23

Was briefly mentioned here, but right now I\'m at the point where I\'ve connected my GCP project to Firebase, set up a custom domain under Firebase hosting, but on the functions

1条回答
  •  星月不相逢
    2021-02-06 18:43

    To associate a vanity domain with your Cloud Functions, you need to associate them with Firebase Hosting. See the documentation on connecting the two.

    Say you have a Cloud Function https://us-central1-.cloudfunctions.net/bigben.

    After making this connection the function will also be available on https://.firebaseapp.com/bigben.

    If you also connect a custom domain with Firebase Hosting, the function will also be available on https://.com/bigben.

    0 讨论(0)
提交回复
热议问题