FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Resolve VPC Connector region if REGION_TBD by wandamora · Pull Request #10469 · firebase/firebase-tools · GitHub

Resolve VPC Connector region if REGION_TBD - #10469

Closed
wandamora wants to merge 6 commits into
mainfrom
wm-fix-issue-10467
Closed

Resolve VPC Connector region if REGION_TBD#10469
wandamora wants to merge 6 commits into
mainfrom
wm-fix-issue-10467

Conversation

wandamora commented May 7, 2026
edited
Loading

Copy link
Copy Markdown
Contributor

This dynamically resolves the VPC connector region to be the same as the function if not defined.

This also includes a small comment fix for the region field in Endpoint.

Scenarios Tested

Create function with VPC connector
firebase deploy --only functions on 15.16.0
Update function and use local firebase-tools build
firebase deploy --only functions
Update was successful.

This dynamically resolves the VPC connector region to be the same
as the function if not defined.

This also includes a small comment fix for the region field in
Endpoint.

gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Code Review

This pull request introduces dynamic resolution for VPC connector regions by replacing the REGION_TBD placeholder with the actual deployment region during the preparation phase. It includes updates to the Endpoint type documentation, logic in moveEndpointToRegion, and a new test case to verify the behavior. Review feedback recommends using the build.REGION_TBD constant instead of hardcoded string literals in both the implementation and the test code to maintain consistency and prevent typos.

Comment thread src/deploy/functions/prepare.ts Outdated
Comment thread src/deploy/functions/prepare.spec.ts Outdated
wandamora and others added 4 commits May 7, 2026 11:10
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This dynamically resolves the VPC connector region to be the same
as the function if not defined.

This also includes a small comment fix for the region field in
Endpoint.
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
wandamora marked this pull request as ready for review May 7, 2026 18:59
wandamora requested review from joehan and shettyvarun268 May 7, 2026 19:00

shettyvarun268 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM!
Might want to re-run the failing checks and update the changelog for this

wandamora closed this May 7, 2026

Copy link
Copy Markdown
Contributor Author

Closing in favor of #10471

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

deploys with 15.17.0 fail without explicit setGlobalOptions({ region: 'us-central1' }) with vpcConnector

3 participants


Back | FazBrowse Home | New Git URL