Skip to content

Deploying functions leads to error #3

@justingrayston

Description

@justingrayston

Just updating the index.js const as describe and deploying leads to the following error.

Error: The default Firebase app does not exist. Make sure you call initializeApp() before using any of the Firebase services.

This is due to Functions.config().firebase being removed https://firebase.google.com/docs/functions/beta-v1-diff#functionsconfigfirebase_removed

In addition the db needs to be initialised after the app has been initialized and the env vars automatically provided.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions