Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy multiple TypeScript functions to Google Cloud #610

Open
peckpeck20 opened this issue May 30, 2024 · 0 comments
Open

Deploy multiple TypeScript functions to Google Cloud #610

peckpeck20 opened this issue May 30, 2024 · 0 comments

Comments

@peckpeck20
Copy link

How can I build and deploy multiple TS cloud functions from the same codebase?

I'm following your TS guide which focuses on the single function use case -> docs/typescript.md

Project structure :
image

Deploy command :

gcloud functions deploy catalogUpdateFunction \ --gen2 \ --region=europe-north1 \ --runtime=nodejs22 \ --source=. \ --entry-point=catalogUpdateFunction \ --trigger-http

Open questions:

  1. What should be the value of the main field in package.json ?
  2. What should the source be for the deploy command?

Setting the source value to --source=./build/functions \ fails with the following error: ERROR: (gcloud.functions.deploy) Invalid value for [--source]: Provided source directory does not have file [package.json] which is required for [nodejs22]. Did you specify the right source?

@HKWinterhalter HKWinterhalter removed their assignment Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants