How to use the .env file?
vedprad1 (906)

I have heard that using a file with the extension of .env can allow you to hide variables from other users, but I do not know exactly how to do it. Does anyone know how to do it?

You are viewing a single comment. View All
Answered by CaptainAnon (142) [earned 5 cycles]
View Answer
RolandJLevy (1045)

Hi @vedprad1, do you know if it's possible to use the .env file in an 'HTML, CSS, JS' repl, like this one: https://repl.it/@rjlevy/js-sliders-game

I'm using Firebase in this project and don't want to expose the API key in src/firebase-config.js

Thanks!