简体   繁体   中英

Is there anyway to configure the firebase firestore emulator to use the data inside the production database?

Is there a way I can configure the firestore emulator to start off with the data in my production database. I have a lot of test information in there and want to transition it to the local emulator without having to copy each and every document/collection. My initial thought was that there must be a configuration in the firebase.json file but I'm sure what it would be.

There is no feature to configure the Firestore emulator to read its initial data from the production database.

What you can do is export the data from your production database (through its regular API(, and import it to the emulator (also through its regular API) and after that use the import and export commands to get the data in and out of the emulator.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM