DEV Community

Discussion on: 🤫How to handle 🗝️ secrets 🗝️ in Node.js (Video Tutorial)

Collapse
 
hhaslam11 profile image
Kaleb Haslam 🌐

Keep in mind that React apps are entirely run on the client-side, so even with env variables, the key will essentially be embedded into the code when compiled, and users will be able to view the key if they start digging around in the browsers dev tools. So this is a good way to keep the key out of a git repository, but this method doesn't keep it secret in a production environment