Skip to content

Outdated allowed SSR region #6223

@eXodes

Description

@eXodes

[REQUIRED] Environment info

firebase-tools: v12.4.7

Platform: macOS

[REQUIRED] Test case

firebase.json

{
  // ...
  "hosting": {
      "source": ".",
      "ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
      "frameworksBackend": {
          "region": "asia-southeast1",
          "maxInstances": 1
      }
  },
  // ...
}

[REQUIRED] Steps to reproduce

  1. Set firebase hosting config as above.

  2. Deploy firebase hosting with experiments env

FIREBASE_CLI_EXPERIMENTS="webframeworks,pintags" firebase deploy --only hosting

[REQUIRED] Expected behavior

Functions to be deployed successfully since asia-southeast1 supports 2nd gen functions.

[REQUIRED] Actual behavior

Error during deployment due to unsupported allowed SSR region.

  Error: Hosting config for site web-app places server-side content in region asia-southeast1 which is not known. Valid regions are us-central1, us-west1, us-east1, europe-west1, and asia-east1

The initial motive of this implementation is stated on this PR #5504. The constant has been refactored into frameworks/constants.ts. However, currently there are more regions that supports 2nd gen functions.

Reference: Cloud Functions supported regions

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions