We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I would like to import existing data into the Firebase emulators on start. Currently, there is no option in vite-plugin-firebase to do this.
Local emulator data can be exported while the emulators are running with
npx firebase emulators:export <dir>
You can then import the data when the emulators start with
npx firebase emulators:start --import=<dir>
Add a config option that allows the import directory be specified. If the option exists, perform the import.
firebasePlugin({ projectName: 'whatever', projectId: 'whatever-12345', targets: ['firestore', 'functions', 'storage'], showUI: true, importPath: './data' // <-- }),
You can import while the emulators are running with the following, but it's inconvenient to have to always run two commands.
npx firebase emulators:exec --import=<dir>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Problem
I would like to import existing data into the Firebase emulators on start. Currently, there is no option in vite-plugin-firebase to do this.
Details
Local emulator data can be exported while the emulators are running with
You can then import the data when the emulators start with
Solution
Add a config option that allows the import directory be specified. If the option exists, perform the import.
Workarounds
You can import while the emulators are running with the following, but it's inconvenient to have to always run two commands.
The text was updated successfully, but these errors were encountered: