Skip to content

Commit

Permalink
Try to resolve firefox connection issues
Browse files Browse the repository at this point in the history
  • Loading branch information
glowacki-dev committed Mar 6, 2021
1 parent 151b8ee commit 31334ee
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/services/DataStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,17 @@ import FirebaseClient from "./Firebase";

const DB = FirebaseClient.firestore();

let settings = {
experimentalAutoDetectLongPolling: true,
};

if (process.env.NODE_ENV === "development") {
DB.settings({
host: "localhost:8080",
ssl: false,
});
settings.host = "localhost:8080";
settings.ssl = false;
}

DB.settings(settings);

const DataStore = {
// Public users' profiles
profiles: DB.collection("users").doc("public_profiles"),
Expand Down

0 comments on commit 31334ee

Please sign in to comment.