I'm using Google Cloud DNS which doesn't offer simple naked domain to WWW subdomain redirect. I want to use Cloud Functions instead of Google App Engine to do the 301 redirects.
Is this possible? Essentially I need a static IP for Cloud Functions and map the naked domain to the Cloud Function
P.S. Not interested in Heroku or Firebase
I'm afraid but it looks like Cloud Functions do not have static IP and are neither not supposed to.
Look here: https://stackoverflow.com/questions/38811882/possible-to-get-static-ip-address-for-google-cloud-functions