mavend/octoboard

In development Firebase public profiles are cleared on every page refresh

Closed this issue · 0 comments

FireStore initialisation script is clearing the public_profiles doc on every page refresh

if (process.env.NODE_ENV === "development") {
  DB.settings({
    host: "localhost:8080",
    ssl: false,
  });
  // Initialize collection - otherwise auth fails
  DB.collection("users").doc("public_profiles").set({});
}