fix: customize song structure
This commit is contained in:
@@ -13,9 +13,12 @@ import { Platform } from "react-native";
|
||||
const functionsInstances = {};
|
||||
const emulatorConfigured = {};
|
||||
const emulatorHost = Platform.OS === "web" ? "localhost" : "192.168.1.62";
|
||||
const USE_FUNCTIONS_EMULATOR = false; // Toggle to route functions traffic to the local emulator.
|
||||
|
||||
const configureFunctionsEmulator = (instance, regionKey = "us-central1") => {
|
||||
if (!__DEV__ || !instance?.useEmulator || emulatorConfigured[regionKey]) {
|
||||
const shouldUseEmulator = USE_FUNCTIONS_EMULATOR && instance?.useEmulator;
|
||||
|
||||
if (!shouldUseEmulator || emulatorConfigured[regionKey]) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -25,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
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user