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

后端 未结 1 620
孤街浪徒
孤街浪徒 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-<your-project-id>.cloudfunctions.net/bigben.

    After making this connection the function will also be available on https://<your-project-id>.firebaseapp.com/bigben.

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

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