Skip to content
Sign upLog in
← Back to Community

.env file

Profile icon
Light4565

Is there a way to hide files or make them so people cant see after this update? I tried making a .env file but it states I cannot and I should check the environment variable sidebar.

Voters
Profile icon
OlusanyaJegs
Profile icon
DUDUFF4
Profile icon
Marfahafizy
Profile icon
Light4565
Comments
hotnewtop
Profile icon
OmN3xin

Currently, you cannot. You can store those files on your computer then when your ready to update, put them on replit.

Profile icon
Coder100

Nope. No more hidden files!

Profile icon
Bookie0

You can't make .env files anymore, you'll have to use this new GUI by clicking the lock icon in the sidebar (near where the files are kept). Then you just enter the name of a key and its value. And in the repl, you do import os, and my_secret = os.environ['name of your key here']. Good luck! :)
Screen Shot 2021-04-15 at 8.08.10 PM

Profile icon
RoBlockHead

The env file has been deprecated. You now need to use the environment variables tab on the sidebar (the lock). Basically just what you put in the .env, as .env is key=value.