Skip to content

How to set firebase config from env variable in service worker with next js? #387

Open
@nileshzala005

Description

@nileshzala005

To receive the push notification in the background , need to init firebase sdk in the background using service worker as per this doc

here when the Firebase config is added statically everything is working fine .

In service worker, process.env.ENV_NAME is not available, how to init SDK in server worker which allows to inject firebase config dynamically in Next Js via environment variable?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions