Custom domains to hosting paths

140 views
Skip to first unread message

Bogdan Ciuca

unread,
May 2, 2023, 5:59:24 PM5/2/23
to Firebase Google Group
Hi,

I have a SSR web app (Nuxt.js) deployed as a Firebase Cloud Function. Some of my app's users are supposed to have a custom page, i.e. mydomain.com/some-user-page. So far, so good.

However, for branding purposes, a select group of users should have the option to connect their own domain, so some-user-domain.com should point to mydomain.com/some-user-page. Is there anyway to support this within Firebase?

Any advice and / or suggestion is appreciated. 

Regards,
Bogdan

jamesd...@google.com

unread,
May 3, 2023, 2:44:32 PM5/3/23
to Firebase Google Group
We do not recommend tenant domains / sub-domains on Firebase Hosting because of how our SSL certificates are minted.

Bogdan Ciuca

unread,
May 3, 2023, 6:48:54 PM5/3/23
to Firebase Google Group
Hi James,

Thanks for your answer!

So in my use case, Firebase Hosting only rewrites requests to a Cloud Function. Do you think it would be possible to rather use the function behind a Serverless NEG & Global External Load balancer, while taking advantage of URL Maps and Certificate Manager to support multiple domains?

Apologies if my inquiry goes beyond Firebase scope.

James Daniels

unread,
May 3, 2023, 7:13:36 PM5/3/23
to fireba...@googlegroups.com
Yes, you could build your own Cloud infrastructure to point at the same Cloud Function that you’re already managing with our tooling. 

This would have associated costs and bypass the Firebase Hosting CDN for static assets / cache-control on tenant domains so just be mindful of that. Cloud CDN could help here.

You’ll be beyond Firebase’s scope to support for those bits. But we’re not doing anything too magic, so our colleagues in Cloud should be able to help if the need arises.

Happy coding!

--
You received this message because you are subscribed to a topic in the Google Groups "Firebase Google Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/firebase-talk/ev7dA22URTY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to firebase-tal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/eb8d4089-652c-4810-9503-3b8fd8374422n%40googlegroups.com.

Bogdan Ciuca

unread,
May 5, 2023, 7:36:04 PM5/5/23
to Firebase Google Group
Sounds good, thanks again!
Reply all
Reply to author
Forward
0 new messages