I'd like to have 2 firebase projects for two separate environments. dev and prod.
my-project-prodmy-project-dev
If I have a single custom domain: www.mydomain.com
Can I use that same custom domain in those 2 different projects?
I would use different subdomains. Example:
my-project-prodwould be connected towww.mydomain.commy-project-devwould be connected todev.mydomain.com
Is this possible?
Yes. When you click add custom domain in firebase hosting, for one, type in www.mydomain.com and add the resource records. For the other domain, type in dev.mydomain.com and add the resource records. When you add the 2 A records, make the host dev, instead of @ or www.