0

i am very new in Firebase World, so i have a doubt, when i run my Firebase locally with firebase serve i can access the http endpoints with simple localhost:5000/... when i use Lirebase Lib with firebase.functions().httpsCallable('my_api_url') aways call deploy url, like https://us-central1-<project-id>.cloudfunctions.net/<api-url>, have some way to set this firebase url to localhost for debug/deployment?

1 Answer 1

1

Cloud Functions doesn't give you a way to customize the URL after deployment. Callable functions aren't typically meant to be exposed directly to people anyway - they are meant to be invoked from your app code, which builds the URL automatically.

If you want a customizable URL endpoint, you could instead create an HTTP trigger, then use Firebase Hosting to connect URLs it serves to Cloud Functions.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.