firebase / firebase/firebase-admin-node

[FR] Abillity to connect auth and storage emulator without env variables

Abierto
#1,454 3 comentarios 0 reacciones 1 asignado Reclamado por @yuchenshi Ver en GitHub
api: auth api: storage help wanted type: feature request
Lenguaje dominante
TypeScript
Estrellas
1.7k
Forks
419
Merge medio
3 d 10 h
PR fusionados (30 d)
16

Descripción

**Is your feature request related to a problem? Please describe.**
I want to make a copy of my production env to develop locally, for this purpose, i need to copy data from firestore and some blob from storage.
To connect the firestore sdk locally, you can do
```javascript
admin.firestore().settings(...)
```
For other products like auth or storage, this kind of settings is not possible and you must provide an environment variable.
But all `app` initialized share this env variables and won't allow you to connect to both production and emulator environment

**Describe the solution you'd like**
Provide an interface like the `settings` of firestore for other emulator products

**Describe alternatives you've considered**
- Override `baseUrl` and `apiEndpoint` for my current storage instance
- Use scripts to export/import my production data

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.