Custom domain for rest api

suga
New Member

Hello,

We have few micro services built with cloud functions that needs to be exposed as rest api using api gateway with a custom domain in front of it. GCP's custom domain in front of an api gateway is still a pre release version, in the mean time looking for alternatives to setup custom domain in front of cloud function rest apis. Any help/insights here will be much appreciated.

Thanks.

1 1 47
1 REPLY 1

Hello @suga,

Welcome to the Google Cloud Community!

If your Cloud Functions are part of a Firebase project, the simplest way is to use Firebase Hosting. You can easily set up a custom domain with Firebase Hosting.

You can also check out these discussions on Stack Overflow:

For Cloud Run, here are a couple of ways to set up a custom domain for Cloud Run services.