Example repository to demonstrate how to work with Google Cloud function with monorepo.
- Install dependencies:
yarn install
To run local function, you need to use dev
script, for example:
yarn workspace @productbrew/funny-world dev
Then visit http://localhost:8080/
to see the function response.
Run gcloud functions deploy
This command will prepare the functions and deploy them.
yarn cli prepare-deploy funny-world
Remember to remove the changes after deployment!