If you use @google-cloud/firestore
as firestore client and you want to use emulator, you can connect by below code
// In console
npx firebase emulators:start --project local-project-id
And
// In app.ts
import {Firestore} from '@google-cloud/firestore'
const firestore = new Firestore({
// Firestore emulator host
host: 'localhost:4100',
projectId: 'local-project-id',
ssl: false,
eexperimentalForceLongPolling: true
})
Have a good day!!
Top comments (0)