We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8775696 commit fc1b6b6Copy full SHA for fc1b6b6
src/providers/firestore.ts
@@ -255,6 +255,7 @@ const FIRESTORE_ADDRESS = FIRESTORE_ADDRESS_ENVS.reduce(
255
'localhost:8080'
256
);
257
const FIRESTORE_PORT = FIRESTORE_ADDRESS.split(':')[1];
258
+const FIRESTORE_HOST = FIRESTORE_ADDRESS.split(':')[0];
259
260
/** Clears all data in firestore. Works only in offline mode.
261
*/
@@ -272,7 +273,7 @@ export function clearFirestoreData(options: { projectId: string } | string) {
272
273
274
const config = {
275
method: 'DELETE',
- hostname: 'localhost',
276
+ hostname: FIRESTORE_HOST,
277
port: FIRESTORE_PORT,
278
path: `/emulator/v1/projects/${projectId}/databases/(default)/documents`,
279
};
0 commit comments