Cloud Functions - deploy common functions

Hi everyone, I'm new to cloud functions and I want to create a common function that can be run by two cloud functions, so I don't have to maintain the same code in two different places.

The idea would be to have a function with "commonActions" that can be called from a cloud function that triggers based on a schedule (.onSchedule) and another one that triggers based on an http call (https.onCall). Is this possible to achieve within the cloud functions module in FF? if not, any ideas how to maintain this in GCP and also call it seamlessly from FF?

5
6 replies