skwny
skwny

Reputation: 3170

Testing outbound requests from Firebase cloud functions on free tier

Each dev on our team is setting up a Firebase project to work with 'locally'. Due to the outbound requests restriction on the free tier, the implication here is that non-Google services that are being called from our functions, cannot actually be called to validate the function works as expected.

Right now the best I can come up with is determining which environment a cloud function is running in (e.g. local, master, prod, etc.) and, if not on a paid tier, fake the outbound service response.

Is there a better way to do this? Ideally we would like to be able to have a fully functional cloud function for each dev.

Upvotes: 0

Views: 873

Answers (1)

Kim
Kim

Reputation: 1198

As you said faking the 3rd party service is one solution.

Another could be using Google's 12 month 300$ credit at https://cloud.google.com/free/

That makes it possible for you to have a single Google account with 300$ credits, then you can change your Firebase free plans into Blaze.

If needed, you can also set up budget alerts which notifies you when you spend a certain amount of credit.

Upvotes: 1

Related Questions