How can I access environment variables from a file sitting inside the public folder in Next.js? – Javascript
I'm integrating Firebase Cloud Messaging, and it is required to have firebase-messaging-sw.js file inside the public folder as a service worker. The file needs to have my firebase config, which I of course want to hide the details of in…