0

I am trying to remove all the hardcoded cloud functions url from my app so that I don't have to different config files for each environment. Since we use cloud functions as our backend, trying to use https://github.com/flutter/plugins/tree/master/packages/cloud_functions plugin to achieve it. But could not figure out a way to call functions which are running locally.

Since we do lot of changes during development, it would be better if we are able to configure the callable url. thanks in advance

user1996206
  • 98
  • 1
  • 10

1 Answers1

0

you can check ngrok for instance. It creates a tunnel from public address to localhost

Mikhail Tokarev
  • 2,843
  • 1
  • 14
  • 35
  • Internally this plugin uses official library from firebase functions which has options set origin through [useFunctionsEmulator](https://firebase.google.com/docs/reference/android/com/google/firebase/functions/FirebaseFunctions.html#useFunctionsEmulator(java.lang.String)). So wanted to know the equivalent option in the flutter library. – user1996206 Jun 26 '19 at 21:01