10
votes

I am trying to find an easy way to roll back to a/the previous version of my firebase function(google cloud function), in case the new release of this firebase function creates a problem to the deployed system.

The way I deploy the functions is via firebase cli (firebase deploy --only functions) and not gcloud cli.

Is there an easy way to roll back to the previous version of the function?

1

1 Answers

10
votes

There is currently no rollback feature. You will have to deploy the function again using the source code that you want to have in its place. To make this easier on themselves, developers typically tag their code in source control after a deploy, so that it's easy to check out a specific version of the code to roll back later.