Skip to content

Resolve VPC Connector region if REGION_TBD#10469

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

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

Conversation

@wandamora
Copy link
Copy Markdown
Contributor

@wandamora wandamora commented May 7, 2026

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.
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

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 wandamora marked this pull request as ready for review May 7, 2026 18:59
@wandamora wandamora requested review from joehan and shettyvarun268 May 7, 2026 19:00
Copy link
Copy Markdown
Contributor

@shettyvarun268 shettyvarun268 left a comment

Choose a reason for hiding this comment

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

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

@wandamora wandamora closed this May 7, 2026
@wandamora
Copy link
Copy Markdown
Contributor Author

Closing in favor of #10471

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