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?
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?