Created
March 8, 2020 19:20
-
-
Save sambshapiro/9260919396d60bfdbc89df1d6940f22a to your computer and use it in GitHub Desktop.
Firebase local development with Firestore & Cloud Functions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (window.location.hostname === 'localhost') { | |
console.log("testing locally -- hitting local functions and firestore emulators"); | |
firebase.functions().useFunctionsEmulator('http://localhost:5001'); | |
firebase.firestore().settings({ | |
host: 'localhost:8080', | |
ssl: false | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment