Skip to content

fix(storage-resize-images): drop BUCKET_REGION options that cannot deploy - #3283

Merged
IzaakGough merged 3 commits into
kitsfrom
fix/kits-resize-images-unsupported-regions
Oct 27, 2026
Merged

IzaakGough merged 3 commits into
kitsfrom
fix/kits-resize-images-unsupported-regions

Conversation

@IzaakGough

@IzaakGough IzaakGough commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #3268.

Choosing europe-north2 or northamerica-south1 for BUCKET_REGION failed the deploy, because Cloud Functions has no location in either region.

This removes both options.

  • Not mapped to a nearby region, as the multi-regions are. The Firebase CLI rejects that: A function in region europe-north1 cannot listen to a bucket in region europe-north2.

Tested with live deploys: both regions failed before this change, and eu and europe-north1 deployed and resized. Other regions were not deployed.

…ploy

europe-north2 and northamerica-south1 have no Cloud Functions location, and the CLI only lets a function listen to a regional bucket from the same region, so neither option can deploy.

@gemini-code-assist 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.

Code Review

This pull request removes the unsupported regions europe-north2 and northamerica-south1 from the BUCKET_REGION configuration options, as Cloud Functions does not support them, and adds a test to verify this exclusion. The review feedback highlights a potential runtime TypeError in the newly added test due to a missing optional chaining operator before calling .map() on a potentially undefined options array.

Comment thread kits/storage-resize-images/tests/function-region.test.ts
@IzaakGough
IzaakGough marked this pull request as ready for review October 26, 2026 11:39

@CorieW CorieW left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Problems

  • The README doesn't mention the gap. The kit can't serve buckets in europe-north2 or northamerica-south1, but the extension can. The README still says regional locations "are used as-is". Suggested wording:

    Cloud Functions has no location in europe-north2 or northamerica-south1, so the kit can't serve a bucket there. The extension can: keep using it, or move to a listed region.

Comment thread kits/storage-resize-images/src/config.ts
Comment thread kits/storage-resize-images/tests/function-region.test.ts
@IzaakGough
IzaakGough merged commit 7ba273a into kits Oct 27, 2026
11 checks passed
@IzaakGough
IzaakGough deleted the fix/kits-resize-images-unsupported-regions branch October 27, 2026 15:55
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.

2 participants