-
-
Notifications
You must be signed in to change notification settings - Fork 84
Open
Description
There is no key "databaseURL" in "servicceAccount"
=> This affects to Initialize App when import Json to Firestore in my case.
export const initializeApp = (serviceAccount: object, name = '[DEFAULT]') => {
if (
admin.apps.length === 0 ||
(admin.apps.length > 0 && admin.app().name !== name)
) {
admin.initializeApp(
{
credential: admin.credential.cert(serviceAccount),
databaseURL: serviceAccount['databaseURL'],
},
name
)
admin.firestore().settings({ timestampsInSnapshots: true })
}
return true
}
Metadata
Metadata
Assignees
Labels
No labels