TLDR/My question: Is there a way to disable the auto-generated endpoints for Firebase Functions?
I've followed the instructions here so that my Firebase functions are available at custom endpoints (e.g. mydomain.com/api/function1
). I then went ahead and successfully configured an API rate limiter with Cloudflare on that domain pattern (which I have DNS control over) and verified that it works correctly as expected.
The only problem this leaves me with is that the default URL for my function (e.g. us-central1-my-hosting-project.cloudfunctions.net/function1
) that is automatically provided by Firebase remains unprotected.