Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
- Fixed an issue with deploying function groups containing v2 functions. (#6408)
- Use GetDefaultBucket endpoint to fetch Storage Default Bucket.
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,
FUNCTION_TARGET: functionId.replace("-", "."),

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'replace' only replaces first instance of the search string. It should be using '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,
FUNCTION_TARGET: functionId.replace("-", "."),

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'replace' only replaces first instance of the search string. It should be using 'replaceAll'.

};

try {
Expand Down