diff --git a/src/backend/Firebase.res b/src/backend/Firebase.res index 7800872..b68045a 100644 --- a/src/backend/Firebase.res +++ b/src/backend/Firebase.res @@ -481,6 +481,9 @@ module Functions = { @module("firebase/functions") external getFunctions: FirebaseApp.t => t = "getFunctions" + @module("firebase/functions") + external getFunctionsInRegion: (FirebaseApp.t, string) => t = "getFunctions" + type callResult<'a> = {data: 'a} @module("firebase/functions") external httpsCallable: (t, string) => 'a => promise> = "httpsCallable" diff --git a/src/components/FirebaseAuthProvider/FirebaseAuthProvider.res b/src/components/FirebaseAuthProvider/FirebaseAuthProvider.res index ea4652c..3e3115d 100644 --- a/src/components/FirebaseAuthProvider/FirebaseAuthProvider.res +++ b/src/components/FirebaseAuthProvider/FirebaseAuthProvider.res @@ -14,7 +14,7 @@ let make = (~children) => { Auth.setLanguageCode(auth, "cs") let analytics = app->Analytics.getAnalytics - let functions = app->Functions.getFunctions + let functions = app->Functions.getFunctionsInRegion(`europe-west3`) let messaging = app->Messaging.getMessaging