这是indexloc提供的服务,不要输入任何密码
Skip to content

Firebase functions emulator ignores region #3031

@JaapWeijland

Description

@JaapWeijland

[REQUIRED] Environment info

firebase-tools:
9.2.0

Platform:
macOS

[REQUIRED] Test case

export const api = region('europe-west3').https.onRequest(server);

When starting the emulator, the emulator correctly outputs the following URL:

✔ functions[api]: http function initialized (http://localhost:5000/**[some-project]**/europe-west3/api).

However, when visiting that URL, a 404 is given. Going to the following URL works however:

http://localhost:5000/**[some-project]**/us-central1/api

[REQUIRED] Steps to reproduce

See above

[REQUIRED] Expected behavior

Hitting the europe-west3 URL working like the us-central1 version does.

[REQUIRED] Actual behavior

The europe-west3 version hits a 404, while us-central1 works.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions