How to set firebase config from env variable in service worker with next js?
Opened this issue · 0 comments
nileshzala005 commented
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?