You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What should be the value of the main field in package.json ?
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?
The text was updated successfully, but these errors were encountered:
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 :
Deploy command :
gcloud functions deploy catalogUpdateFunction \ --gen2 \ --region=europe-north1 \ --runtime=nodejs22 \ --source=. \ --entry-point=catalogUpdateFunction \ --trigger-http
Open questions:
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?
The text was updated successfully, but these errors were encountered: