Skip to content

Unable to switch emulators local url after changing project #8770

Open
@Cruzor-Blade

Description

@Cruzor-Blade

[REQUIRED] Environment info

firebase-tools: 14.7.0

Platform: Windows

[REQUIRED] Test case

Initialize a firebase project, with functions and the functions emulator enabled. Start the emulator. Local url is correct here.
Shut the emulator down, change use another firebase project, then relaunch the emulator. Functions will still be using the id of the previous project.

Note: I am using single project mode, and have checked the .firebaserc file and the id is correctly set to the new project.

[REQUIRED] Steps to reproduce

I am unable to switch the local url of the functions emulator. The firebase project folder was previously pointing to another firebase project, and has been changed. But when launching the emulator, the functions still use the previous project Id in the url

[REQUIRED] Expected behavior

http://127.0.0.1:5001/new-project-id/location-name/functionName

[REQUIRED] Actual behavior

http://127.0.0.1:5001/old-project-id/location-name/functionName

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