-
Set your
.envbased on theenv-example -
Install dependencies
npm install --save-dev @google-cloud/functions-framework
- Test the framework:
npm run dev
Generate .env.yaml from the .env file, then:
gcloud functions deploy staking-efficiency-indexer-alt \
--region=europe-west3 --source=. \
--trigger-http --allow-unauthenticated \
--runtime=nodejs14 --env-vars-file=./.env.yaml \
--timeout=540s