[go: nahoru, domu]

Skip to content

Commit

Permalink
Correctly set FUNCTION_TARGET for multilevel grouped functions (#6423)
Browse files Browse the repository at this point in the history
Co-authored-by: joehan <joehanley@google.com>
  • Loading branch information
aalej and joehan committed Oct 2, 2023
1 parent 6ff08fc commit 6c467cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Fixed an issue with deploying multilevel grouped functions containing v2 functions. (#6419)
4 changes: 2 additions & 2 deletions src/gcp/cloudfunctionsv2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ export async function createFunction(cloudFunction: InputCloudFunction): Promise

cloudFunction.serviceConfig.environmentVariables = {
...cloudFunction.serviceConfig.environmentVariables,
FUNCTION_TARGET: functionId.replace("-", "."),
FUNCTION_TARGET: functionId.replaceAll("-", "."),
};

try {
Expand Down Expand Up @@ -439,7 +439,7 @@ export async function updateFunction(cloudFunction: InputCloudFunction): Promise

cloudFunction.serviceConfig.environmentVariables = {
...cloudFunction.serviceConfig.environmentVariables,
FUNCTION_TARGET: functionId.replace("-", "."),
FUNCTION_TARGET: functionId.replaceAll("-", "."),
};

try {
Expand Down

0 comments on commit 6c467cf

Please sign in to comment.