diff --git a/website/src/index.js b/website/src/index.js index d568881..d377be9 100644 --- a/website/src/index.js +++ b/website/src/index.js @@ -14,10 +14,12 @@ const FIREBASE_CONFIG = { }; firebase.initializeApp(FIREBASE_CONFIG); + if (window.location.host !== "www.vaxand.me") { firebase.functions().useEmulator(window.location.host.split(":")[0], 5001); } -const fb_functions = firebase.functions(); + +const fb_functions = firebase.app().functions('us-central1'); const saveResult = fb_functions.httpsCallable("saveResultV1"); const getPastResult = fb_functions.httpsCallable("getPastResultV1"); const getStats = fb_functions.httpsCallable("getStatsV1");