Skip to content

Commit 9a9cdd8

Browse files
authored
chore(docs): update firebase emulator recipe
Node prefers ipv6 from version 17 nodejs/node#40537
1 parent c96e8d8 commit 9a9cdd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ export default cypressConfig;
469469
const shouldUseEmulator = window.location.hostname === 'localhost'; // or other logic to determine when to use
470470
// Emulate RTDB
471471
if (shouldUseEmulator) {
472-
fbConfig.databaseURL = `http://localhost:9000?ns=${fbConfig.projectId}`;
472+
fbConfig.databaseURL = `http://localhost:9000?ns=${fbConfig.projectId}`; // from node v17 use 127.0.0.1 instad of localhost
473473
console.debug(`Using RTDB emulator: ${fbConfig.databaseURL}`);
474474
}
475475

0 commit comments

Comments
 (0)