Would anyone know if there is a way to initialize a Firebase function (using emulator to debug locally) with an https address instead of the default http? I'm trying to debug a Telegram bot-related script and Telegram only allows https webhooks.
Shell output is the following:
PS C:\Users\<user>\Desktop\tmp_node\functions> firebase emulators:start --only functions
i emulators: Starting emulators: functions
+ hub: emulator hub started at http://localhost:4400
+ functions: Using node@10 from host.
+ functions: functions emulator started at http://localhost:8443
i functions: Watching "C:\Users\<user>\Desktop\tmp_node\functions" for Cloud Functions...
+ functions[<function name>]: http function initialized (http://localhost:8443/<endpoint>).
+ emulators: All emulators started, it is now safe to connect.
I need it to start on https://localhost:8443/ instead.
Thank you very much in advance!
Like @bermick mentioned in the comments, ngrok is a good way to get around this until the Firebase guys give us a way to enable https on the local emulator. Here are the steps:
./ngrok authtoken [[your_token]]
(the current page at https://dashboard.ngrok.com/get-started/setup will have the whole command including the token so you can just copy and paste it into the console)../ngrok http 5001
Forwarding https://xxxxxxxxx.ngrok.io -> http://localhost:5001
https://xxxxxxxxx.ngrok.io/my-project/us-central1/cloudFunctionName
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With