Skip to content

Commit

Permalink
feat: use region "europe-west3" for the functions
Browse files Browse the repository at this point in the history
  • Loading branch information
czabaj committed Oct 30, 2024
1 parent 5756ae6 commit e356350
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/backend/Firebase.res
Original file line number Diff line number Diff line change
Expand Up @@ -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<callResult<'b>> = "httpsCallable"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

<AppCheckProvider sdk=appCheck>
Expand Down

0 comments on commit e356350

Please sign in to comment.