Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ALLOWED_SSR_REGIONS constant for web frameworks #6086

Closed
wants to merge 9 commits into from
28 changes: 26 additions & 2 deletions src/frameworks/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,42 @@
export const DEFAULT_REGION = "us-central1";
export const ALLOWED_SSR_REGIONS = [
{ name: "us-central1 (Iowa)", value: "us-central1" },
{ name: "us-west1 (Oregon)", value: "us-west1" },
{ name: "us-east1 (South Carolina)", value: "us-east1" },
{ name: "europe-west1 (Belgium)", value: "europe-west1" },
{ name: "us-east4 (Northern Virginia)", value: "us-east4" },
{ name: "us-west1 (Oregon)", value: "us-west1" },
{ name: "us-west2 (Los Angeles)", value: "us-west2" },
{ name: "us-west3 (Salt Lake City)", value: "us-west3" },
{ name: "us-west4 (Las Vegas)", value: "us-west4" },
{ name: "asia-east1 (Taiwan)", value: "asia-east1" },
{ name: "asia-east2 (Hong Kong)", value: "asia-east2" },
{ name: "asia-northeast1 (Tokyo)", value: "asia-northeast1" },
{ name: "asia-northeast2 (Osaka)", value: "asia-northeast2" },
{ name: "asia-northeast3 (Seoul)", value: "asia-northeast3" },
{ name: "asia-south1 (Mumbai)", value: "asia-south1" },
{ name: "asia-south2 (Delhi)", value: "asia-south2" },
{ name: "asia-southeast1 (Singapore)", value: "asia-southeast1" },
{ name: "asia-southeast2 (Jakarta)", value: "asia-southeast2" },
{ name: "australia-southeast1 (Sydney)", value: "australia-southeast1" },
{ name: "australia-southeast2 (Melbourne)", value: "australia-southeast2" },
{ name: "europe-central2 (Warsaw)", value: "europe-central2" },
{ name: "europe-north1 (Finland)", value: "europe-north1" },
{ name: "europe-west1 (Belgium)", value: "europe-west1" },
{ name: "europe-west2 (London)", value: "europe-west2" },
{ name: "europe-west3 (Frankfurt)", value: "europe-west3" },
{ name: "europe-west4 (Netherlands)", value: "europe-west4" },
{ name: "europe-west6 (Zurich)", value: "europe-west6" },
{ name: "northamerica-northeast1 (Montreal)", value: "northamerica-northeast1" },
{ name: "northamerica-northeast2 (Toronto)", value: "northamerica-northeast2" },
{ name: "southamerica-east1 (São Paulo)", value: "southamerica-east1" },
{ name: "southamerica-west1 (Santiago)", value: "southamerica-west1" },
];

export const I18N_ROOT = "/";

export function GET_DEFAULT_BUILD_TARGETS() {

Check warning on line 76 in src/frameworks/constants.ts

View workflow job for this annotation

GitHub Actions / lint (20)

Missing return type on function

Check warning on line 76 in src/frameworks/constants.ts

View workflow job for this annotation

GitHub Actions / lint (20)

Missing JSDoc comment
return Promise.resolve(["production", "development"]);
}

export function DEFAULT_SHOULD_USE_DEV_MODE_HANDLE(target: string) {

Check warning on line 80 in src/frameworks/constants.ts

View workflow job for this annotation

GitHub Actions / lint (20)

Missing return type on function

Check warning on line 80 in src/frameworks/constants.ts

View workflow job for this annotation

GitHub Actions / lint (20)

Missing JSDoc comment
return Promise.resolve(target === "development");
}