You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
So people should be able to work on admin features, but shouldn't be able to wreck the production database. So we need to stub the database in development.
Is there an environment variable in netlify, like "NODE_ENV=Production"? If so, we could have our code check for that, and if it's set to "Production", to use firebase authentication like usual, but if it's set to "development", to deny access to the production database and instead use the emulator.
Is your feature request related to a problem? Please describe.
So people should be able to work on admin features, but shouldn't be able to wreck the production database. So we need to stub the database in development.
This is now supported:
firebase/firebase-tools#1677 (comment)
https://firebase.google.com/docs/emulator-suite/connect_auth
https://firebase.google.com/docs/emulator-suite/install_and_configure
We can import a mock database like so:
https://stackoverflow.com/a/62977147
Although, generating the initial state and exporting it to a valid blob format has to be done manually.
The text was updated successfully, but these errors were encountered: