Skip to content

Commit 292306a

Browse files
iJack93Mecapptronicsjoehan
authored
fix(functions): add missing regions to V2_REGION_TO_TIER pricing map (#9697)
The V2_REGION_TO_TIER mapping was missing several Cloud Functions regions that are officially supported, causing issues when deploying functions with minInstances to these regions: - canCalculateMinInstanceCost() returns false, showing generic warning - monthlyMinInstanceCost() throws TypeError if called without guards Added missing Tier 1 regions: - africa-south1 (Johannesburg) - europe-southwest1 (Madrid) - europe-west8 (Milan) - europe-west9 (Paris) - me-west1 (Tel Aviv) - us-east5 (Columbus) - us-south1 (Dallas) Added missing Tier 2 regions: - asia-south2 (Delhi) - australia-southeast2 (Melbourne) - europe-west10 (Berlin) - europe-west12 (Turin) - me-central1 (Doha) - me-central2 (Dammam) - northamerica-northeast2 (Toronto) - southamerica-west1 (Santiago) Fixes #9696 Co-authored-by: Jacopo Antonio Causin <jacopo.causin@mecapptronics.com> Co-authored-by: Joe Hanley <joehanley@google.com>
1 parent 7db81c2 commit 292306a

2 files changed

Lines changed: 17 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
- Fixed pricing calculation for Cloud Functions deployed to newer regions (africa-south1, europe-west8, me-west1, and others) when using minInstances. (#9696)
12
- Removed MCP tools and prompts that required Gemini in Firebase terms of service.
23
- Fixes an issue where the `--only` flag was not always respected for `firebase mcp`
34
- Removed timeout when connecting to Cloud SQL. Hopefully, should mitigate issue #9314. (#9725)

src/deploy/functions/pricing.ts

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,28 +35,43 @@ const V1_REGION_TO_TIER: Record<string, tier> = {
3535
};
3636

3737
const V2_REGION_TO_TIER: Record<string, tier> = {
38+
"africa-south1": 1,
3839
"asia-east1": 1,
3940
"asia-northeast1": 1,
4041
"asia-northeast2": 1,
4142
"europe-north1": 1,
43+
"europe-southwest1": 1,
4244
"europe-west1": 1,
4345
"europe-west4": 1,
46+
"europe-west8": 1,
47+
"europe-west9": 1,
48+
"me-west1": 1,
4449
"us-central1": 1,
4550
"us-east1": 1,
4651
"us-east4": 1,
52+
"us-east5": 1,
53+
"us-south1": 1,
4754
"us-west1": 1,
4855
"asia-east2": 2,
4956
"asia-northeast3": 2,
57+
"asia-south1": 2,
58+
"asia-south2": 2,
5059
"asia-southeast1": 2,
5160
"asia-southeast2": 2,
52-
"asia-south1": 2,
5361
"australia-southeast1": 2,
62+
"australia-southeast2": 2,
5463
"europe-central2": 2,
5564
"europe-west2": 2,
5665
"europe-west3": 2,
5766
"europe-west6": 2,
67+
"europe-west10": 2,
68+
"europe-west12": 2,
69+
"me-central1": 2,
70+
"me-central2": 2,
5871
"northamerica-northeast1": 2,
72+
"northamerica-northeast2": 2,
5973
"southamerica-east1": 2,
74+
"southamerica-west1": 2,
6075
"us-west2": 2,
6176
"us-west3": 2,
6277
"us-west4": 2,

0 commit comments

Comments
 (0)