Skip to content

Make the functions emulator work in Studio #8463

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

joehan
Copy link
Contributor

@joehan joehan commented Apr 25, 2025

Description

Cleaning up some issues introduced in #8443.

Within Firebase Studio, any calls coming from the browser need to use the port forwarding hosts. However, calls coming from inside the VM can safely just use localhost. This change should keep the emulator UI using port forwarding, but let the functions emulator use localhost.

Scenarios Tested

Tested on Studio with npx firebase/firebase-tools#jh-fns-studio, and confirmed that calls from within functions are working and calls from the emulator UI are routed to the right host.

@joehan joehan requested a review from avolkovi April 25, 2025 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant