feat: free credits

This commit is contained in:
2025-12-09 09:36:34 +01:00
parent 9c2087c574
commit 307d4b951b
2 changed files with 29 additions and 29 deletions
+4 -4
View File
@@ -28,7 +28,7 @@ const configureFunctionsEmulator = (instance, regionKey = "us-central1") => {
} catch (error) {
console.warn(
`[firebase] Unable to set functions emulator for region ${regionKey}`,
error?.message,
error?.message
);
}
};
@@ -50,9 +50,9 @@ if (!firebase?.apps?.filter(({ name_ }) => name_ === "[DEFAULT]").length) {
persistence: getReactNativePersistence(AsyncStorage),
});
if (__DEV__) {
firebase.functions().useEmulator("localhost", 5001);
}
// if (__DEV__) {
// firebase.functions().useEmulator("localhost", 5001);
// }
const defaultFunctions = firebase.functions();
functionsInstances["us-central1"] = defaultFunctions;
configureFunctionsEmulator(defaultFunctions, "us-central1");