So I sent an email to firebase support and this process involves removing your current domain and adding a new domain which involves some downtime whilst they procure a new SSL certificate, etc.
If anyone is attempting to do this and does not want to incur any downtime its not too difficult. The highlevel process I have followed to move from olddomain.com to newdomain.com without downtime is detailed below:
- Procure another temp server (i.e. amazon or whatever) and bring up nginx
- Deploy your static files (css, js, html, jpg, etc) to this temporary server
- Procure a cert for olddomain.com and deploy it on your server. You can get some free ones for a month if you have a search (dont want to endorse any particular product here)
- Ensure the site is running as olddomain.com on your temp server (hack you hosts file to force your domain name to point at the new temp server.
- If all good, modify your DNS for olddomain.com so it points at your temp server.
- Wait a few hours to ensure all traffic going to your temp server (look at w3c style logs to ensure traffic is coming in)
- You can now safely remove your olddomain.com and setup newdomain.com under firebase hosting without losing traffic to olddomain.com
- Once newdomain.com setup and running on firebase hosting, configure olddomain.com to do a redirect to newdomain.com. May want to leave this up for a while depending upon how much traffic you are expecting to olddomain.com.
- Job done without any downtime :)
Hope these steps are of use to others.
Thanks.