Reputation: 361
We are running Firebase with multiple environments/stages. To test migrations, we are constantly rolling back, importing a database state through the CLI. The problem is: Our functions are triggered as well. In that scenario, we just want to alter the db without any side effects. Is it possible to hibernate all functions in any way?
Upvotes: 5
Views: 268
Reputation: 598857
There is no way to temporarily disable Cloud Functions, nor to prevent them from running based on the source of data.
The closest I can think of is:
index.js
to remove all functionsindex.js
to re-add the functionsUpvotes: 4