Skip to content

Commit

Permalink
Correctly set FUNCTION_TARGET for multilevel grouped functions
Browse files Browse the repository at this point in the history
  • Loading branch information
aalej committed Oct 2, 2023
1 parent 6e9f56e commit 55dd75b
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 55dd75b

Please sign in to comment.