diff --git a/CHANGELOG.md b/CHANGELOG.md index 7e11a4a0f72..560b07206b6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1 +1,2 @@ - Fixed an issue where functions deployments would silently fail (#6989) +- Updates the default region for new App Hosting backends to us-east4 (#10271) diff --git a/src/apphosting/backend.spec.ts b/src/apphosting/backend.spec.ts index c95e8421c9d..ace94298395 100644 --- a/src/apphosting/backend.spec.ts +++ b/src/apphosting/backend.spec.ts @@ -347,7 +347,7 @@ describe("apphosting setup functions", () => { describe("promptLocation", () => { const supportedLocations = [ - { name: "us-central1", locationId: "us-central1" }, + { name: "us-east4", locationId: "us-east4" }, { name: "us-west1", locationId: "us-west1" }, ]; @@ -358,16 +358,16 @@ describe("apphosting setup functions", () => { it("returns a location selection", async () => { const location = await promptLocation(projectId, /* prompt= */ ""); - expect(location).to.be.eq("us-central1"); + expect(location).to.be.eq("us-east4"); }); it("uses a default location prompt if none is provided", async () => { await promptLocation(projectId); expect(promptStub.select).to.be.calledWith({ - default: "us-central1", + default: "us-east4", message: "Please select a location:", - choices: ["us-central1", "us-west1"], + choices: ["us-east4", "us-west1"], }); }); diff --git a/src/apphosting/constants.ts b/src/apphosting/constants.ts index 87ebefb1bca..d3de9a50a3b 100644 --- a/src/apphosting/constants.ts +++ b/src/apphosting/constants.ts @@ -1,3 +1,3 @@ -export const DEFAULT_LOCATION = "us-central1"; +export const DEFAULT_LOCATION = "us-east4"; export const DEFAULT_DEPLOY_METHOD = "github"; export const ALLOWED_DEPLOY_METHODS = [{ name: "Deploy using github", value: "github" }];