Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nileshzala005 opened this issue Dec 6, 2024 · 0 comments

Comments

@nileshzala005
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant