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.
Before you run gcloud functions deploy
, you need to prepare function for deployment using:
yarn cli prepare-deploy funny-world
Remember to remove the changes after deployment!