Ask coding questions

← Back to all posts
.env file is viewable by anyone
h
PixelNinja (309)

Hi, can you see the .env file? if i sign out, i can still see it

Answered by Vandesm14 (2639) [earned 5 cycles]
View Answer
Comments
hotnewtop
Vandesm14 (2639)

You have to change it from Token.env to just .env. Repl.it only hides the .env file, not files with the extension, .env

Please upvote this if it helped you out 👍

ArchieMaclean (913)

@Vandesm14 That's cool - I knew you could do that on desktops but not on repl (put a . before for a hidden file).

If you're using a program with repl that reads/writes to a file anyway, it doesn't create the file to be opened - so that would be another way of using a hidden file on repl.