Skip to content

Commit

Permalink
chore(docs): update firebase emulator recipe
Browse files Browse the repository at this point in the history
Node prefers ipv6 from version 17 nodejs/node#40537
  • Loading branch information
tzkz authored Jul 21, 2023
1 parent c96e8d8 commit 9a9cdd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ export default cypressConfig;
const shouldUseEmulator = window.location.hostname === 'localhost'; // or other logic to determine when to use
// Emulate RTDB
if (shouldUseEmulator) {
fbConfig.databaseURL = `http://localhost:9000?ns=${fbConfig.projectId}`;
fbConfig.databaseURL = `http://localhost:9000?ns=${fbConfig.projectId}`; // from node v17 use 127.0.0.1 instad of localhost
console.debug(`Using RTDB emulator: ${fbConfig.databaseURL}`);
}

Expand Down

0 comments on commit 9a9cdd8

Please sign in to comment.