From e356350c6704c4d4a52c15e0fd86d341fd91d65e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Gr=C3=B6hling?= Date: Wed, 30 Oct 2024 17:49:21 +0100 Subject: [PATCH] feat: use region "europe-west3" for the functions --- src/backend/Firebase.res | 3 +++ src/components/FirebaseAuthProvider/FirebaseAuthProvider.res | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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