Skip to content

Commit f5aa458

Browse files
authored
Correctly set FUNCTION_TARGET for grouped functions (#6410)
1 parent 77b3690 commit f5aa458

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
- Fixed an issue with deploying function groups containing v2 functions. (#6408)
12
- Use GetDefaultBucket endpoint to fetch Storage Default Bucket.

src/gcp/cloudfunctionsv2.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ export async function createFunction(cloudFunction: InputCloudFunction): Promise
331331

332332
cloudFunction.serviceConfig.environmentVariables = {
333333
...cloudFunction.serviceConfig.environmentVariables,
334-
FUNCTION_TARGET: functionId,
334+
FUNCTION_TARGET: functionId.replace("-", "."),
335335
};
336336

337337
try {
@@ -439,7 +439,7 @@ export async function updateFunction(cloudFunction: InputCloudFunction): Promise
439439

440440
cloudFunction.serviceConfig.environmentVariables = {
441441
...cloudFunction.serviceConfig.environmentVariables,
442-
FUNCTION_TARGET: functionId,
442+
FUNCTION_TARGET: functionId.replace("-", "."),
443443
};
444444

445445
try {

0 commit comments

Comments
 (0)