if this is to be used in the browser, I don’t think it’s meant to be secret. you just send it to every visitor, whether it’s coded into the js file or the server reads it from an env variable
As I said in original post. I currently have 2 files (index.html & script.js)
In some posts it is said to use a server. But, isn’t that glitch is on a node server and using process.env.API-KEY should work? I’m just guessing but correct me if I’m wrong…
I don’t think the design of Google maps intends for you to hide it.
if it’s a key you use on the server side, then yes you could hide it by putting it in the .env file, but it sounds like your app doesn’t do anything on the server side.